Re: Include sequence relation support in logical replication
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Cary Huang <cary.huang@highgo.ca>
Cc: Craig Ringer <craig@2ndquadrant.com>, Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2020-05-09T00:26:49Z
Lists: pgsql-hackers
Hi, On 2020-05-08 16:32:38 -0700, Cary Huang wrote: > I have added more regression test cases to the sequence replication > patch with emphasis on transactions and rollback per your > suggestions. I find that when a transaction is aborted with rollback, > the decoder plugin will not receive the change but the sequence value > will in fact advance if nextval() or setval() were called. Right. The sequence advances shouldn't be treated transactionally. That's already (optionally) done similarly for messages, so you should be able to copy that code. Greetings, Andres Freund
Commits
-
Add decoding of sequences to built-in replication
- 75b1521dae1f 15.0 landed
-
Add decoding of sequences to test_decoding
- 80901b32913f 15.0 landed
-
Logical decoding of sequences
- 0da92dc530c9 15.0 landed