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

You can do cross database queries with fdw

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

PostgreSQL

https://www.youtube.com/live/0nFGVCpQDec?si=FCj2p_WagE4FfY3i - live session of Postgres Hacking with Andrey Borodin; join!

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

PostgreSQL

I want to do certification

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

PostgreSQL

I f***ed up royally a logical upgrade a couple of years ago. Failed to sync sequences that weren't linked to any tables. Problem was they were used to generate certificate S/Ns...

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

PostgreSQL

That is, if you keep your sequences synced continuously. Otherwise I doubt you can manage a few 100 ms. Ask me how I know... 😬

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

PostgreSQL

ah, logical replication is the one with the lowest downtime

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

PostgreSQL

Hi, how do you decide between pg_upgrade, logical replication, and dump/restore for postgresql upgrades? Which postgresql upgrade method is the best for minimal downtime. Thanks

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

PostgreSQL

Those are great approaches and i understand you
making changes to move from mysql to postgres or get more projects related to postgres is hard.
I started my way in by learning by my own so it shouldnt be trouble for me, the problem is finding those good topics to learn.

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

PostgreSQL

You can ask your team leader to change the field of your occupation. Or you can just change the company. Or you also can work as freelancer or maintain your own pet projects

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

PostgreSQL

How can I stay updated as a DBA in postgres?
Where can I find some cool projects / architecture to learn and keep being in this rapidly advancing world? 🧐

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

PostgreSQL

That's basically what pg_rewind does. But that's not automatic.

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

PostgreSQL

https://www.pgedge.com/blog/setting-up-failover-slots-in-postgresql-17

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

PostgreSQL

Oh my...
https://github.com/cybertec-postgresql/vip-manager

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

PostgreSQL

etcd API 2 vs. 3 mismatch.
Either use ETCDCTL_API=2 or ETCDCTL_USER

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

PostgreSQL

And what does

etcdctl get /service/pg_cluster/leader
give you?

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

PostgreSQL

Hi, does anybody have info, when postgres will support cross-database queries? And why it is not implemented yet?

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

PostgreSQL

There is no such thing as postgresql certification, however many suggest Enterprise DB: https://www.enterprisedb.com/training/certification-exams

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

PostgreSQL

Is there classes suggestions for postgre sql??

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

PostgreSQL

That's why it's hard for new DBAs but downtime for finely tuned process that handles application dns switch would be in milliseconds (hundreds of ms was exaggeration).

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

PostgreSQL

Logical is lowest downtime but hardest to setup, if you can switch your application connections quickly then it's usually few hundred milliseconds of downtime. pg_upgrade with hard link can take long time if there are too many tables and analyze is added time.

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

PostgreSQL

pg_upgrade with hard link option is the one with lowest downtime, else pg_upgrade will copy the entire data folder and should be quite fast.
dump restore is good if you want to start from scratch with a "clean" data folder (new indexes, no dead tuples...)
logical replication is somewhat complex to setup so i didn't look much into it

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

PostgreSQL

Patroni has pg_rewind flag

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

PostgreSQL

Cause I think in general “learning in order to learning” is a bad idea, you have a lack of motivation

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

PostgreSQL

I mainly work here now with mySQL
There are some psotgres db's here but they are small and barely any work with them.
So i feel like I missing a lot that going out there

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

PostgreSQL

You can also use rsync if not much data has changed

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

PostgreSQL

This still requires rebuilding the old primary as secondary.
I was looking for something like reverse replication for failover n failback

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

PostgreSQL

Hi,
Does postgres 17 has the ability to make to make the auto reverse replication when a secondary is promoted?

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

PostgreSQL

Do you have docs about vip manager with patroni?

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

PostgreSQL

# etcdctl get /service/pg_cluster/leader
{"level":"warn","ts":"2025-04-02T12:22:24.718894+0300","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCDCTL_USERNAME=root"}
{"level":"warn","ts":"2025-04-02T12:22:24.733532+0300","logger":"etcd-client","caller":"v3@v3.5.20/retry_interceptor.go:63","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc00053a1e0/192.168.25.180:2379","attempt":0,"error":"rpc error: code = InvalidArgument desc = etcdserver: user name is empty"}
Error: etcdserver: user name is empty

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

PostgreSQL

I'm using rest-api patroni

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