Re: locking [user] catalog tables vs 2pc vs logical rep
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>
Cc: vignesh C <vignesh21@gmail.com>, Peter Smith <smithpb2250@gmail.com>, Andres Freund <andres@anarazel.de>,
PostgreSQL-development <pgsql-hackers@postgresql.org>, Markus Wanner <markus.wanner@enterprisedb.com>
Date: 2021-06-16T10:20:57Z
Lists: pgsql-hackers
On Mon, Jun 14, 2021 at 5:33 PM osumi.takamichi@fujitsu.com <osumi.takamichi@fujitsu.com> wrote: > > On Friday, June 11, 2021 2:13 PM vignesh C <vignesh21@gmail.com> wrote: > > Attached the patch-set that addressed those two comments. > Few minor comments: 1. + <listitem> + <para> + Clustering <structname>pg_class</structname> in a transaction. Can we change above to: Perform <command>CLUSTER</command> on <structname>pg_class</structname> in a transaction. 2. + <listitem> + <para> + Executing <command>TRUNCATE</command> on user catalog table in a transaction. + </para> Square brackets are missing for user. 3. + <indexterm> + <primary>Overview</primary> + </indexterm> .. .. + <indexterm> + <primary>Caveats</primary> + </indexterm> Why are these required when we already have titles? I have seen other places in the docs where we use titles for Overview and Caveats but they didn't have similar usage. 4. <para> + Performing <command>PREPARE TRANSACTION</command> after <command>LOCK</command> + command on <structname>pg_class</structname> and logical decoding of published + table. Can we change above to: <command>PREPARE TRANSACTION</command> after <command>LOCK</command> command on <structname>pg_class</structname> and allow logical decoding of two-phase transactions. 5. + <para> + Clustering <structname>pg_trigger</structname> and decoding <command>PREPARE + TRANSACTION</command>, if any published table have a trigger and any + operations that will be decoded are conducted. + </para> Can we change above to: <command>PREPARE TRANSACTION</command> after <command>CLUSTER</command> command on <structname>pg_trigger</structname> and allow logical decoding of two-phase transactions. This will lead to deadlock only when published table have a trigger. -- With Regards, Amit Kapila.
Commits
-
Doc: Update caveats in synchronous logical replication.
- 4be39ef9cbc5 9.6.23 landed
- f365151a5392 10.18 landed
- e00e5db22d79 11.13 landed
- a73bd49c69e1 12.8 landed
- 7a4ecefe9d77 13.4 landed
- c66fb78ebb4f 14.0 landed
-
Document a few caveats in synchronous logical replication.
- acdb523cb642 9.6.23 landed
- ff33be61f212 10.18 landed
- 5a456034b84e 11.13 landed
- 9f7bba2629cf 13.4 landed
- eb231dbd80d2 12.8 landed
- 3cb828dbe260 14.0 landed
-
Update the docs and comments for decoding of prepared xacts.
- b4e3dc7fd420 14.0 landed
-
Allow decoding at prepare time in ReorderBuffer.
- a271a1b50e9b 14.0 cited
-
Documentation for logical decoding.
- 49c0864d7ef5 9.4.0 cited