English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.
The conneciton was fast like all of you recently listed is normal and expected. I'll keep an eye out for any discrepancies and quickly capture the packets. Tbh I wish I could have captured the initial reason for the extremelly long conn time.
Читать полностью…I’ll check it out with tcpdump as-well, thank you for clarification. I was already thinking it’s odd that conn takes so long ^-^
Читать полностью…When running a traceroute it also takes a while to get to server, about 330ms, with 18 hops.
Читать полностью…Names in pg_hba?
(Well, it's definitely not normal. A typical TLS is usually not more than 6 rtt).
( it’s my first time using a remote db, it’s hosted on my own VPS )
Читать полностью…I have the notion that there were errors earlier on in your log. Like "no space left on device" or so.
Читать полностью…Because the backup is incomplete without the missing WAL segments.
Читать полностью…pg_basebackup: write-ahead log end point: 1F97/4AD81F98
pg_basebackup: waiting for background process to finish streaming ...
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
Then it should _at least_ do an index scan. Really strange 🤔
Читать полностью…is there any option/workaround doing something like this on older versions?
Читать полностью…what's the right way to create logical replication in case tables are big and i want to make it as fast as possible?
Читать полностью…Yeah, at the end i made a function myself to do max() only on the first highest non-empty partition
Читать полностью…https://explain.dalibo.com/plan/725d5efe653a8a01#grid
Читать полностью…Well the issue resolved it’s self. Which idk if I should be happy or concerned. I did however intercept both traffic from local machine and vps. The traffic indicated a usual three-way handshake with almost no latency.
Читать полностью…That's a lot, but shouldn't take more than a couple of seconds either.
Well, you could use strace and tcpdump to check exactly — what's going on and what are they waiting for.
Mhh odd, I currently have the following very simple pg_hba;
# TYPE DATABASE USER ADDRESS METHODЧитать полностью…
hostssl test postgres 0.0.0.0/0 md5
hostssl test postgres ::/0 md5
Nope, It's not normal. I can setup VM in AWS US-EAST-1 and psql connection from EU is always in milliseconds.
Читать полностью…I am currently setting up a SSL/TLS remote db instance. Although initial connection takes a long time. I am connecting from VPS > VPS and both servers are in EU..
Is it normal for the initial conn to take about 1min seems strangely long to me..
Or is it normal for psql handshake to take that long, and will db operations be fast?
i don't think it's space issue because i have TB available
Читать полностью…Yes but it's complicated.
https://pganalyze.com/blog/5mins-postgres-zero-downtime-upgrades-logical-replication
Create physical replica and convert it to logical.
https://www.dbi-services.com/blog/postgresql-17-convert-a-physical-replica-to-a-logical-replica-using-pg_createsubscriber/
Seems very much an edge case. To generalise it, there would be interesting questions on whether a table is actually empty for your snapshot or not.
Читать полностью…Likely the planner doesn't know how to optimize this step to just scan one partition.
Читать полностью…Now, i want to know the highest value of sub_id
in all partitions, ideally, it would check the first partition with at least one row, starting from the highest possible partition sub_id
, instead it starts a parallel sequential scan on every single partition and then aggregates that