-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem while synchronization replication with pg_easy_replicate #825
Comments
And have you checked what exactly is taking up so much space? It might not be the database itself, but rather WAL files accumulating, for example, due to an issue with To check the size of your databases, you can use the |
Everything is working! No errors! archive_command is working and archiving
patroni cluster is working!
\l+ command shows the amount of space of /var/lib/postgresql/16/main/base/ directory.
pg_wal is not rising:
just rising /base/ directory... |
Hmm, determine which objects in the database are growing. Try asking the same question in the repository of this utility that you use. |
Thanks! public | inspection | table | mydb | permanent | heap | 237 GB | public | inspection | table | mydb | permanent | heap | 500 GB | |
compare the size of the largest tables on the source and target: select
quote_ident(schemaname)||'.'||quote_ident(relname) as table_full_name,
pg_size_pretty(pg_relation_size(relid)) as table_size,
pg_size_pretty(pg_total_relation_size(relid)) as total_relation_size
from
pg_stat_user_tables ut
-- leaving out fully locked tables as pg_relation_size also wants a lock and would wait
where not exists (select 1 from pg_locks where relation = relid and mode = 'AccessExclusiveLock' and granted)
order by pg_total_relation_size(relid) desc
limit 10; |
It was inspection table I solved synchronous logical repilication by using another utility - https://github.com/2ndQuadrant/pglogical |
Feel free to suggest a PR |
I am doing synchronous replication from standalone Postgres version 14 to a database cluster version 16. On the source database the data volume is 270 GB, and on the target cluster it is already 500 GB and the data copy is still going (no errors)...
When setting up the target I specified a VIP address with port 5000
why volume of data on the target DB much larger than on the source?
Thanks!
The text was updated successfully, but these errors were encountered: