pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2830

English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.

Subscribe to a channel

PostgreSQL

Hi QWxp. I'm still using apgDiff since 10 years ago.

* dump production & dev ddl
* diff it with apgDiff
* roll the diff into test env ( one mirror containing full production data )
* if it pass, deploy.
* commit & tag the diff within a release.
* if something happen. rollback from that tag.

automate the process by using simple bash script. no complex ci/cd setup.

Читать полностью…

PostgreSQL

Hi, I wants to try bloom index
If anyone already tried can you pls brief how it helped practically to access early

Читать полностью…

PostgreSQL

yeah, sometimes i do miss solving complex problem by myself. now i prefer trade it to get higher leverage (sales, business network, etc).

Читать полностью…

PostgreSQL

Btw, over the past three years, I’ve been outsourcing almost all my database problems to major LLMs — complex stuff including CTEs, window, recursive, even regex.

I just attach DDL, prompt, and done. I barely write complex queries myself anymore. Kinda weird, but, I get to watch more Lex Fridman podcasts now. LOL.

Do you guys do the same?

Читать полностью…

PostgreSQL

Arman , try to write it down on your own language, than translate it to English. You may be speaking while your computer writes it down, and it is not working this way.

Читать полностью…

PostgreSQL

Maybe it's just a newly developed language variant, that we, dinosauros, don't understand?

Читать полностью…

PostgreSQL

You say im doing false?

Читать полностью…

PostgreSQL

/switch_model_chatgpt5

Читать полностью…

PostgreSQL

Sorry, but I’m unable to assist because your question is unclear. It’s difficult to understand exactly what you’re trying to achieve with your transaction and reporting tables. Please explain your setup again using clear examples, such as table names, key fields, and what kind of reports or operations you want to perform. This will help me provide a useful answer.

Читать полностью…

PostgreSQL

I’m sorry, but as a large language model, I’m unable to assist with that request right now. I hope you find the right solution for your needs. If you have other questions, please let me know.

Читать полностью…

PostgreSQL

I do not understand what you are looking for

Читать полностью…

PostgreSQL

Hello friends, I want to do something. I want to do something. When I have accounting in my service, I have one that is used to store payments, wallets, transactions, and transactions. Because I am in the middle of my transactions, I came to my transaction table. I used UID. Every time I want to select a report, I find it for each user. It is a bit difficult for me to find it with a specific user ID. Do you think it is wrong? When I create transactions, I create a separate table for transaction reports. Then I show the reports that the user needs to see in a more limited way. With the primer, when it is added, and I put these two queries in one transaction at the same time. Do you think this is wrong? I separate the report altogether, for example, a more important table from transactions. This will not make the database heavy or, for example, an additional table, because it is easier this way.

Читать полностью…

PostgreSQL

One of my favourite things to do is

SELECT id, name FROM table_a WHERE NOT EXISTS (SELECT 1 FROM table_b WHERE some_condition)



But I’ve struggled to do that for an IN query with predefined tuple. So I have to go back to experimenting

Читать полностью…

PostgreSQL

Is it?🤔 i thought that was very fast

Читать полностью…

PostgreSQL

I usually try to swap it for a more explicit join, especially when working with many many values

Читать полностью…

PostgreSQL

Bloom indexes have a very distinct use case. Many columns that are sparsely filled and get queried in unpredictable combinations. If your data is like that, you'll probably benefit. If it's not, bloom is probably not worth trying.

Читать полностью…

PostgreSQL

Hi, try to look at citus extension, it can actually help you, but you need to do research by yourself

Читать полностью…

PostgreSQL

Nope, SQL is not complex and I would do anything to avoid watching Lex Fridman podcast.

Читать полностью…

PostgreSQL

Patiently waiting durov and musk to drop grok into telegram. So we can ditch this crap and have real productive talks.😅

Читать полностью…

PostgreSQL

Your english is insanely non-sensial, please use another translation method from your native language for understandability.

Читать полностью…

PostgreSQL

I don't understand your question.

Читать полностью…

PostgreSQL

Sounds very much like trying to optimise something far to early.

For transaction reporting, I would have thought building the report from the *actual* transaction data is the most important. For auditability you want the least complexity here and definitely don't want duplicated data.

If you're so concerned by the 'size' of your main transaction record, then you're likely better off splitting that.

But it's very hard for people here to give any actual advice if you don't at least share table structures (via a pastebin site).

Читать полностью…

PostgreSQL

Can i send to your pv ?

Читать полностью…

PostgreSQL

Look, there's a problem. I want to store two data and two different tables at the same time. While the tables may be duplicates, their data, but I want one for reporting. It has fewer attributes than, for example, that one and the other, for example, the main bank transaction. For example, I choose one separately for reporting transactions and one separately for that transaction process in the database because that transaction process in the database has a uid and every time I want to access it and show it to the user, this is problematic and it becomes very slow. The solution I used is good now.

Читать полностью…

PostgreSQL

He thinks you are a LLM

Читать полностью…

PostgreSQL

@unfoxo

Читать полностью…

PostgreSQL

Ah yes! I do that a lot too

Читать полностью…

PostgreSQL

Maybe it’s time to visit my (NOT) EXISTS lessons

Читать полностью…

PostgreSQL

Well... Not really. It denys some fast direct algorithms for some indexes — but that part is fast anyway, there is no urge to fix it in this query.

Splitting may also switch to a nested loop, yes, but... Not because in/any is slow — it's because another set of problems.

Читать полностью…

PostgreSQL

Isn't "in/any" the source of all evils?

Читать полностью…
Subscribe to a channel