Re: Excessive number of replication slots for 12->14 logical replication
hubert depesz lubaczewski <depesz@depesz.com>
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-07-18T08:09:13Z
Lists: pgsql-bugs
On Mon, Jul 18, 2022 at 09:07:35AM +0530, Amit Kapila wrote: > As per my understanding, each subscription will use three slots (one > for apply worker and one for each of the sync workers) in your case in > the sync phase. So, in your case, if you have 10 subscriptions then > ideally it should be no more than 30. Can you please check and share > the subscriber logs to see if there are any errors in the initial sync > phase? Also, please confirm the number of subscriptions you create on > the subscriber? Hi, I'm 100% sure we create 10, with the table distribution as shown in original post. Will reset the whole thing from scratch, and check for other errors, but it will take "a while". Best regards, depesz
Commits
-
Make the tablesync worker's replication origin drop logic robust.
- 88f488319bac 16.0 landed
-
Drop replication origin slots before tablesync worker exits.
- f6c5edb8abca 16.0 landed
-
Allow multiple xacts during table sync in logical replication.
- ce0fdbfe9722 14.0 cited