Re: Skipping logical replication transactions on subscriber side
Masahiko Sawada <sawada.mshk@gmail.com>
Attachments
- make_subskiplsn_aligned_v4.patch (application/octet-stream) patch v4
On Wed, Apr 6, 2022 at 12:21 PM Noah Misch <noah@leadboat.com> wrote: > > On Tue, Apr 05, 2022 at 04:41:28PM +0900, Masahiko Sawada wrote: > > On Tue, Apr 5, 2022 at 4:08 PM Noah Misch <noah@leadboat.com> wrote: > > > On Tue, Apr 05, 2022 at 03:05:10PM +0900, Masahiko Sawada wrote: > > > > I've attached an updated patch. The patch includes a regression test > > > > to detect the new violation as we discussed. I've confirmed that > > > > Cirrus CI tests pass. Please confirm on AIX and review the patch. > > > > > > When the context of a "git grep skiplsn" match involves several struct fields > > > in struct order, please change to the new order. In other words, do for all > > > "git grep skiplsn" matches what the v2 patch does in GetSubscription(). The > > > v2 patch does not do this for catalogs.sgml, but it ought to. I didn't check > > > all the other "git grep" matches; please do so. > > > > Oops, I missed many places. I checked all "git grep" matches and fixed them. > > > --- a/src/backend/catalog/system_views.sql > > +++ b/src/backend/catalog/system_views.sql > > @@ -1285,8 +1285,8 @@ REVOKE ALL ON pg_replication_origin_status FROM public; > > > > -- All columns of pg_subscription except subconninfo are publicly readable. > > REVOKE ALL ON pg_subscription FROM public; > > -GRANT SELECT (oid, subdbid, subname, subowner, subenabled, subbinary, > > - substream, subtwophasestate, subdisableonerr, subskiplsn, subslotname, > > +GRANT SELECT (oid, subdbid, subname, subskiplsn, subowner, subenabled, > > + subbinary, substream, subtwophasestate, subdisableonerr, subslotname, > > subsynccommit, subpublications) > > subskiplsn comes before subname. Right. I've attached an updated patch. Regards, -- Masahiko Sawada EDB: https://www.enterprisedb.com/
Commits
-
Test ALIGNOF_DOUBLE==4 compatibility under ALIGNOF_DOUBLE==8.
- c1da0acbb06e 15.0 landed
-
Reorder subskiplsn in pg_subscription to avoid alignment issues.
- 79b716cfb7a1 15.0 landed
-
Add ALTER SUBSCRIPTION ... SKIP.
- 208c5d65bbd6 15.0 landed
-
Optionally disable subscriptions on error.
- 705e20f8550c 15.0 cited
-
Update docs of logical replication for commit 8d74fc96db.
- 85c61ba8920b 15.0 landed
-
Respect permissions within logical replication.
- a2ab9c06ea15 15.0 cited
-
Fix regression test failure caused by commit 8d74fc96db.
- 41e66fee0516 15.0 landed
-
Add a view to show the stats of subscription workers.
- 8d74fc96db5f 15.0 landed
-
Add logical change details to logical replication worker errcontext.
- abc0910e2e0a 15.0 landed
-
Rename LOGICAL_REP_MSG_STREAM_END to LOGICAL_REP_MSG_STREAM_STOP.
- 4cd7a1896871 15.0 landed
-
Fix typo in protocol.sgml.
- e1915646658d 14.0 landed
- 0ac1aee0d7d8 15.0 landed
-
Remove unused argument in apply_handle_commit_internal().
- f4b939f1a372 14.0 landed
- 16bd4becee32 15.0 landed
-
Fix replication of in-progress transactions in tablesync worker.
- 0926e96c4934 14.0 cited
-
Reorder pg_sequence columns to avoid alignment issue
- f3b421da5f4a 10.0 cited