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

pg_basebackup: initiating base backup, waiting for checkpoint to complete
pg_basebackup: checkpoint completed
pg_basebackup: write-ahead log start point: 13CF/8A000028 on timeline 37
pg_basebackup: starting background WAL receiver
pg_basebackup: created replication slot "sync_replica"
33/2797557515 kB (0%), 0/20 tablespaces (..._DDBB/PG_14_202107181/57375/1255)
65151/2797557515 kB (0%), 0/20 tablespaces (...DDBB/PG_14_202107181/57375/73762) <--- there was the error

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

PostgreSQL

Yeah, the error was, i cannot create the replica slot first

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

PostgreSQL

In thiscase I recommend to start thinking or hire an engineer.

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

PostgreSQL

Why basebackup is deleting the Data directory? and Wal Logs?

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

PostgreSQL

What puzzles me is that you're at 3TB and still do "manual" backups. At this size, you'd benefit massively from e.g. pgBackRest's parallel processing.

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

PostgreSQL

The bottleneck is the wal transfer is slow

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

PostgreSQL

First you have to identify bottlnecks in your setup.
Then a reasonable thoughts about what to do with it would be feasible.

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

PostgreSQL

PostgreSQL: Documentation: 16: pg_basebackup
https://www.postgresql.org/docs/current/app-pgbasebackup.html#:~:text=Valid%20values%20are%20between%2032,transfer%20of%20the%20data%20directory.

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

PostgreSQL

I meant that reply, sorry.

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

PostgreSQL

Which is the parameter?

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

PostgreSQL

Te versión are 14.10

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

PostgreSQL

How to use postgres in k8s cluster or we should go for cloud services

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

PostgreSQL

What? Wait! You mean pg_restore does not have a "--repair-corrupted-data" switch?

Well, now I am starting to question the "--from-the-dump-I-forgot-to-make" option!

LOL

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

PostgreSQL

Patroni just tells Postgres what to do. When your replication fails, that has 0.0 to do with Patroni. Check the PG server logs for error messages, they should point you in the direction to look in (e.g. network disconnection).

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

PostgreSQL

But gpt often allucinates or borrows stuff from others db

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

PostgreSQL

But my basebackup already contains the -C

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

PostgreSQL

Because you didn't get a backup, so keeping it is a waste 🤷

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

PostgreSQL

pg_basebackup: error: child process exited with exit code 1
pg_basebackup: removing contents of data directory "/postgresql14/bbddpostgresql/"
pg_basebackup: removing contents of WAL directory "/postgresql14/xlogs"
pg_basebackup: changes to tablespace directories will not be undone

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

PostgreSQL

i repeat, the pg_basebackup is for configure the replication

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

PostgreSQL

This is for Data directory

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

PostgreSQL

1163140159/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.828)
1163460127/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.828)
1163788031/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.828)
1164071807/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.829)
1164356511/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.829)
1164661311/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.829)
1164954143/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.829)
1165302208/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.830)
1165655872/2797506003 kB (41%), 6/20 tablespaces (...G_14_202107181/37580219/2613.830)

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

PostgreSQL

here is u can maximise the max rate

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

PostgreSQL

Oh, sorry for that guys

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

PostgreSQL

For compress doesn't need more time?

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

PostgreSQL

u can use, compression with tar & parallel workers also that should work way faster

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

PostgreSQL

Guys, someone know any parameter of pg_basebackup to make faster? The size of around 3tb the server on same cpd and same subnet

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

PostgreSQL

That will probably not help in the direction OP wants to replicate, though. Not that I understand nor support the desire to get data from PG into Mongo, but alas! 😏

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

PostgreSQL

Let me second this. We did a lot of work, before I knew the power and efficiency of FDWs.
If I had to do it all over again... I would have worked with FDWs.

I would have created customized SELECT statements (like a virtualized view) to fix the tables I wanted fixed/changed.

From there you can do INSERT INTO ...
To pull the data into your actual tables.

You can also use COPY and \COPY against a (select from fdw) to generate a file you can easily import into another PG DB copy...

LESSON Learned. This is good advice!

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

PostgreSQL

ChatGPT is very much like conservative politicians; it usually *sounds* reasonable, but more often than not it produces complete dogsh*t, albeit very eloquently. 😏

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

PostgreSQL

There can be a lot of reasons for replication failure.

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