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

Linux 7.0 Shows Significant PostgreSQL Performance Gains On AMD EPYC Review - Phoronix
https://www.phoronix.com/review/linux-70-amd-epyc-turin/2

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

PostgreSQL

So much so that I have deferred the feature for so long

But it can’t wait anymore, I guess. Especially now that there doesn’t seem to be any movement in that area

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

PostgreSQL

Most definitely not free, if it’s coming from Oracle

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

PostgreSQL

Not an Oracle guy, but AFAIK they have this "flashback" feature. No idea if that's a) standard compliant b) free or comes with costs (guess so).

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

PostgreSQL

Just with a strange performance and even stranger modifications!

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

PostgreSQL

I have a feature I’ve managed to defer for almost 2 years now because I was waiting for it to happen

I think WITH SYSTEM TIME AS OF is easier if it comes baked in

That and, using a managed database, I can’t install the periods extension so bummer

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

PostgreSQL

I don't think it's sad.

SQL as a standard is already overbloated with app-level features.

And temporal/bitemporal is mostly app-level (at leas as of now). Nothing special is of urgent need in the engine, just another set of fields and index search.

So, it seems better to wait while there are would be some implementations to look at them, look what they need, look for common features — and then implement something in the server core...

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

PostgreSQL

Does anyone know about the current state of bitemporal features in PostgreSQL (in built, not with extensions)?

Last I remember, work was being done to include that

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

PostgreSQL

I usually don't recommend for less then 2TB.

(Except archive pseudo-partitioning, which often become usable much faster)

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

PostgreSQL

0. Reconsider if you really want this.

1. Create your partitioned table. See https://www.dbi-services.com/blog/postgresql-partitioning-4-hash-partitioning/ for an example of creating a hash partitioned table

2. Copy the data from the old to the partitioned table (think about supporting data changes during the copy or not)

3. Lock both tables with an access exclusive lock

4. Rename the old table to table_old, rename the partitioned table to the original table name.

5. Commit

6. Check of everything works correctly

7. Drop your old table

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

PostgreSQL

this is a request from application team, do you know what is the best method to archive it?

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

PostgreSQL

lose archive_timeout data is like the scenario i said before?
pg_receive_wal means it will backup the WAL that is being written now and not yet being archived?

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

PostgreSQL

There are other backup tools like barman that allow you to have a standby using pg_receive_wal to avoid ARCHIVER lose of data

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

PostgreSQL

so it's possible only if the WAL will be archived right?

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

PostgreSQL

if im taking full backup using pgbackrest then i insert more data and capture the timestamp right before this insert.
is it possible to restore to this point? or only if the WALs been archived by pgbackrest? without issuing pg_switch_wal

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

PostgreSQL

Does anybody have pdf for “PostgreSQL 16 Administration Cookbook”.. Thanks in Advance

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

PostgreSQL

I don’t think it’ll be that bad

Just…the thought of rolling out timeline tracking and auditing is painful

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

PostgreSQL

Probably because it is very rigid algorithmically.

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

PostgreSQL

Why strange performance?😅

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

PostgreSQL

Is that the same as Oracle?🤔
I heard oracle or something of the sort has it too

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

PostgreSQL

DB2 has at least some of the requested features.

The main advantage of implementing what's in the standard would be that ORMs could use the features. Which - come to think of it - sounds terrifying 😅

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

PostgreSQL

According to commitfest, no activity in that field since 2021. Which is kind of sad. On the plus side it's something you can earn some merits with a good patch, I guess 😏

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

PostgreSQL

Don't full vacuum at first.

Generally, it's not necessary.
At the very last there is a pg_repack, but most of the time it doesn't needed either.

Second approach is to use logical replication and switchover for maintenance. Requires a lot of effort, though, and kinda fragile (complex machinery underneath, a lot of sequential operations on replicas...)

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

PostgreSQL

4b) check for any views that refer to the old table and redefine them (ask me how I know... 🤪)

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

PostgreSQL

I need support for postgresql

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

PostgreSQL

And you also config pg_receive_wal like a synchronous standby and you would not lose any info and you also will have some reduction of performance due to wait of confirmation

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

PostgreSQL

I think pg_backrest doesn't support pg_receive_wal

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

PostgreSQL

If you use backup tool based on archiver you would lose archive_timeout data

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

PostgreSQL

Yes, but if you only have pgBackRest as a means to retrieve the WAL then you have to wait for the entire last WAL file to be archived first, either by pg_switch_wal or PG deciding to archive it of it's own initiative because of archive_timeout or the WAL file being full.

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

PostgreSQL

Sometimes it can be ones you do not expect, e.g. we had system table bloat with pg_attribute/index etc. because our temp search results are stored as new unlogged tables in the app and so there was a lot of metadata churn. Can be bad for perf if you let that get away from you.

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