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

that can be managed by the application (or so say the developers) but it's good to have it in mind

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

PostgreSQL

You can put a bouncer in front of your db, and move the clients transparently to the new db once migrated

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

PostgreSQL

Or rather, do all the small ones in a single chunk

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

PostgreSQL

I would just dump every db and reload it on the latest version and that's it

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

PostgreSQL

So, you're looking at what, 10TB+ to upgrade with logical replication? Sounds like a lot of fun. Not.

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

PostgreSQL

I understand correctly that I can easily update version 14 to 16 or 17 using pg_dumpall?

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

PostgreSQL

Do they actually need 1000 db's in 1 server? I have seen similar setup in the wild with around 3700 DBs in one server but it was due to historical reason or system architect forgot there are schemas.

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

PostgreSQL

https://www.depesz.com/2023/06/04/a-tale-about-incomplete-upgrade-from-postgresql-12-to-14/

Depesz article about logical replication pain. There are couple of more issues you get with very large databases like sync snapshot too large or replication worker terminating due to lack of host throughput capacity.

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

PostgreSQL

With 1000 DBs, the schema dump & restore will easily take hours, yeah.

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

PostgreSQL

the problem is that downtime has to be (and has been so far) under a few minutes, but the process is quite stressing

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

PostgreSQL

yes, I have this PITA feeling ... I just wanted to confirm it 😊 and if maybe there was a cream to calm the pain

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

PostgreSQL

Hello, ... I'm handling postgresql major version upgrades by setting up a new server and logically replicate the data with pglogical.
I have 3 servers with around 1000 dbs in each server now.
I generate in bash the commands to stablish and check the replication (a long list of psql -f commands).
It's become quite cognitive intense to keep it under control for me.
Is there any tool to manage this volume of logical replication that gives me a better feeling of management and control of the process?
Thanks!

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

PostgreSQL

The best guide to action turned out to be official documentation ;)

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

PostgreSQL

https://www.postgresql.org/docs/9.2/release.html

Check from here, you can choose the version at the top of the document

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

PostgreSQL

Since you're jumping a theroretical of 12 versions ahead, i would suggest a full dump & restore with pg_dumpall, since i'm not sure pg_upgrade will happily move you from 9.2 to 17

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

PostgreSQL

After you've done migrating all the databases, remove the bouncer and put the new server in place of the old one

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

PostgreSQL

And then do the >10gb ones individually

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

PostgreSQL

I would like to do that, but seems more automatable to use logical replication

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

PostgreSQL

from a few MBs to less than 1GB, except 3 or 4 of about 10GB

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

PostgreSQL

Maybe you find a way to patch pg_upgrade in a way that it accepts a new DB with the schema already applied? That'd probably even be accepted as a feature; I heard horror stories of similarly huge schemas delaying pg_upgrade to _days_...

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

PostgreSQL

Could it be perhaps one db per customer?

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

PostgreSQL

yes that's my fear. Thanks for the link

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

PostgreSQL

Now, the application allows to point to individual dbs within one server or the other, so it hasn't to be done all 1000 dbs at once and it should be possible to be done in smaller batches, but doing it all at once is always in the mind of the managers

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

PostgreSQL

Downtime should depend on size of pg catalog (number of objects) so hard to guess without testing. pg18 onwards there will be no need to analyze as stats can be exported so that will lower downtime.

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

PostgreSQL

Logical replication is very fragile and other factors affecting it's stability are size and rate of data changes. Just pg upgrade with link method and some downtime might be better option.

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

PostgreSQL

Managing thousands of publications & subscriptions will be a royal PITA no matter what. I doubt anybody ever implemented a tool with this lot in mind... 🤷

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

PostgreSQL

No problem, I asked a similar question
/channel/pg_sql/92043

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

PostgreSQL

I need Postgres training videos any one have

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

PostgreSQL

What all main changes from 9.2.24 to 9.6.*latest verion

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

PostgreSQL

Depending on the complexity of the database (stored procedures, queries you run) you might have some incompatibilities. Surely you'll need to read the release notes carefully: https://www.postgresql.org/docs/9.6/release.html

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