pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2806

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

Ah yes. I usually use rsync + manual backup for initial setup so i am not affected by these issues

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

PostgreSQL

Couldn't you just do with a replication slot if you're really lucky, or am i missing something?

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

PostgreSQL

Oh, where can I see the graph when version support ends?

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

PostgreSQL

Thanks for your help 🙏🏼

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

PostgreSQL

No. The default is to stream wal during the copy, using a second connection. I see you have nothing that overrides that setting so i have no idea what could be wrong

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

PostgreSQL

Replace the integer of the column of the second table with the string of the first table that has a identical integer column of the second table with a second column with the string of the products. FIRST TABLE: (ID) 1 | (PRODUCT) iPhone | ---- second table | (ID) 1| ... to be replaced with iPhone.

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

PostgreSQL

Do you need to edit the original table, or just get the data?

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

PostgreSQL

Okay, i see i can't send images in this chat.

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

PostgreSQL

Hello, after some internet search, as a beginner i can't figure out how to solve an easy excercise: i have to tables. I have to replace the id of the column of the second table (example: 1, 2 ...) with the corresponding product name (example: iphone 15 ...) that i should get from the first table (that has a identical column with an id). Any tips? Thank you - here are the tables:

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

PostgreSQL

I have tried 4 times to get my slave ready.
Last time i saw the log :

requested WAL segment has already been removed

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

PostgreSQL

BTW, you should have all the wal files already streamed by pg_basebackup

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

PostgreSQL

You provided me with a great experience.

Do you have any links where I can learn about the parameters I need to calculate the value I’m looking for?

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

PostgreSQL

It really depends on your amount of generated wals

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

PostgreSQL

Not if archive_cleanup_command is set to call pg_archivecleanup

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

PostgreSQL

(you should set it up anyway, along with streaming replication, for better reliability and recovery speed in case the secondary falls behind)

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

PostgreSQL

Yes you could, but OP has just proven that that doesn't help with the initial setup. Also you don't get PITR...

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

PostgreSQL

https://www.postgresql.org/support/versioning/
(you'll have to make a graph yourself, I'm afraid ;-)

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

PostgreSQL

IMNSHO, a replication setup without a WAL archive is pretty much useless anyway. You should first set up a WAL archive, then your problem goes away real quick.
You should also combine that with a major upgrade real soon, 11 is EOL for > 1 year now!

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

PostgreSQL

I don't know what happens when e.g. you reach the maximum amount of connections so that the second replication cannot be opened

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

PostgreSQL

Do you have any other idea based on my command?

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

PostgreSQL

Thank you. I just need to replace in the second table the number with the corresponding name of the product of the first table. FIRST TABLE: column ID=1 column PRODUCT=iPhone --- SECOND TABLE: column ID=1 --- I have to change the ID=1 of the second table with ID=iPhone. Is it clear? Thanks

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

PostgreSQL

You need to use a join

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

PostgreSQL

pg_basebackup -h masterhost -p masterport -D /data -U replicauser --checkpoint=fast -vP -R -W

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

PostgreSQL

Send the full pg_basebackup command please

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

PostgreSQL

Are you sure the standby is not ready and the error in the log is just the database looking for the newest file? (standby keeps trying to read current_wal+1 and obviously fails when it is up to date with the primary)

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

PostgreSQL

Look at the folder and count the files generated in the past hour :)

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

PostgreSQL

On my inactive server I get a new wal file every 30 minutes, on my busy one it goes anything from 3 minutes from 20 seconds

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

PostgreSQL

It is a good idea and I will test your solution.

And what would you recommend if i want to set wal_keep_size , wal_keep_segment and wal_max_size?

to handle a lag of 3 hours

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

PostgreSQL

Wouldn't it cause my master disk to become full?

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

PostgreSQL

Setup archive_command to keep the wal files :)

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