-
Notifications
You must be signed in to change notification settings - Fork 19
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
why is the volume of data on the target DB much larger than on the source? #194
Comments
The inspection table of mydb on source is 237GB
And on target is growing while start synch
could this be related to the fact that a record is being written to the table on the source base during synchronization? |
I've run into this as well a couple times. and I'm not entirely sure why - but the target table is VASTLY larger. |
Does running vacuum on it help ? |
Upon further review - looks like (in my instance at least) - a table that has a large amount of read/writes to it (say, if it's a cache table), will generate a rather large TOAST table on the target side. since vacuum can't run until the table's in a replicating state (I'm guessing there's a lock to prevent that from happening while the data copy is running), it can't clean it up until after it's in a replicating state. |
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)...
why is the volume of data on the target DB much larger than on the source?
The text was updated successfully, but these errors were encountered: