Re: Excessive number of replication slots for 12->14 logical replication
Ajin Cherian <itsajin@gmail.com>
From: Ajin Cherian <itsajin@gmail.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Peter Smith <smithpb2250@gmail.com>, "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>,
Amit Kapila <amit.kapila16@gmail.com>, Hubert Lubaczewski <depesz@depesz.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-08-11T15:04:30Z
Lists: pgsql-bugs
Attachments
- v6-0001-fix-excessive-replication-origin-slots-issue.patch (application/octet-stream) patch v6-0001
On Thu, Aug 4, 2022 at 5:42 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > Thank you for working on this. I have a comment and a question: > > * This has to be done after updating the state > because otherwise if > * there is an error while doing the database > operations we won't be > - * able to rollback dropped slot. > + * able to rollback dropped slot or origin tracking. > > I think we can actually roll back dropping the replication origin. So > the above comment is true for only replication slots. > Fixed this. regards, Ajin Cherian Fujitsu Australia
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