From: | Greg Nancarrow <gregn4422(at)gmail(dot)com> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Ajin Cherian <itsajin(at)gmail(dot)com>, "tanghy(dot)fnst(at)fujitsu(dot)com" <tanghy(dot)fnst(at)fujitsu(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] logical decoding of two-phase transactions |
Date: | 2021-06-22 05:36:46 |
Message-ID: | CAJcOf-cF4L2oFRSLN3VLhH-701rhQLc7KdTqOsh0hmxLy1_=UQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jun 21, 2021 at 4:37 PM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> Please find attached the latest patch set v88*
>
Some minor comments:
(1)
v88-0002
doc/src/sgml/logicaldecoding.sgml
"examples shows" is not correct.
I think there is only ONE example being referred to.
BEFORE:
+ The following examples shows how logical decoding is controlled over the
AFTER:
+ The following example shows how logical decoding is controlled over the
(2)
v88 - 0003
doc/src/sgml/ref/create_subscription.sgml
(i)
BEFORE:
+ to the subscriber on the PREPARE TRANSACTION. By default,
the transaction
+ prepared on publisher is decoded as a normal transaction at commit.
AFTER:
+ to the subscriber on the PREPARE TRANSACTION. By default,
the transaction
+ prepared on the publisher is decoded as a normal
transaction at commit time.
(ii)
src/backend/access/transam/twophase.c
The double-bracketing is unnecessary:
BEFORE:
+ if ((gxact->valid && strcmp(gxact->gid, gid) == 0))
AFTER:
+ if (gxact->valid && strcmp(gxact->gid, gid) == 0)
(iii)
src/backend/replication/logical/snapbuild.c
Need to add some commas to make the following easier to read, and
change "needs" to "need":
BEFORE:
+ * The prepared transactions that were skipped because previously
+ * two-phase was not enabled or are not covered by initial snapshot needs
+ * to be sent later along with commit prepared and they must be before
+ * this point.
AFTER:
+ * The prepared transactions, that were skipped because previously
+ * two-phase was not enabled or are not covered by initial snapshot, need
+ * to be sent later along with commit prepared and they must be before
+ * this point.
(iv)
src/backend/replication/logical/tablesync.c
I think the convention used in Postgres code is to check for empty
Lists using "== NIL" and non-empty Lists using "!= NIL".
BEFORE:
+ if (table_states_not_ready && !last_start_times)
AFTER:
+ if (table_states_not_ready != NIL && !last_start_times)
BEFORE:
+ else if (!table_states_not_ready && last_start_times)
AFTER:
+ else if (table_states_not_ready == NIL && last_start_times)
Regards,
Greg Nancarrow
Fujitsu Australia
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2021-06-22 05:52:03 | Re: intermittent failures in Cygwin from select_parallel tests |
Previous Message | Dilip Kumar | 2021-06-22 05:35:22 | Re: Toast compression method options |