From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
---|---|
To: | "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com> |
Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Jan Wieck <jan(at)wi3ck(dot)info>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com> |
Subject: | Re: Conflict detection and logging in logical replication |
Date: | 2024-08-22 02:58:10 |
Message-ID: | CAHut+Pv=-4iNXsZOW6AHs9D5Z1zh2tF_7rL4e=rta26Sq_2L4w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
HI Hous-San,. Here is my review of the v20-0001 docs patch.
1. Restructure into sections
> I think that's a good idea. But I preferred to do that in a separate
> patch(maybe a third patch after the first and second are RFC), because AFAICS
> we would need to adjust some existing docs which falls outside the scope of
> the current patch.
OK. I thought deferring it would only make extra work/churn, given you
already know up-front that everything will require restructuring later
anyway.
~~~
2. Synopsis
2.1 synopsis wrapping.
> I thought about this, but wrapping the sentence would cause the words
> to be displayed in different lines after compiling. I think that's inconsistent
> with the real log which display the tuples in one line.
IMO the readability of the format is the most important objective for
the documentation. And, as you told Shveta, there is already a real
example where people can see the newlines if they want to.
nit - Anyway, FYI there is are newline rendering problems here in v20.
Removed newlines to make all these optional parts appear on the same
line.
2.2 other stuff
nit - Add underscore to /detailed explanation/detailed_explanation/,
to make it more obvious this is a replacement parameter
nit - Added newline after </synopsis> for readabilty of the SGML file.
~~~
3. Case of literals
It's not apparent to me why the optional "Key" part should be
uppercase in the LOG but other (equally important?) literals of other
parts like "replica identity" are not.
It seems inconsistent.
~~~
4. LOG parts
nit - IMO the "schema.tablename" and the "conflict_type" deserved to
have separate listitems.
nit - The "conflict_type" should have <replaceable> markup.
~~~
5. DETAIL parts
nit - added newline above this <varlistentry> for readability of the SGML.
nit - Add underscore to detailed_explanation, and rearrange wording to
name the parameter up-front same as the other bullets do.
nit - change the case /key/Key/ to match the synopsis.
~~~
6.
+ <para>
+ The <literal>replica identity</literal> section includes the replica
+ identity key values that used to search for the existing
local tuple to
+ be updated or deleted. This may include the full tuple value
if the local
+ relation is marked with <literal>REPLICA IDENTITY FULL</literal>.
+ </para>
It might be good to also provide a link for that REPLICA IDENTITY
FULL. (I did this already in the attachment as an example)
~~~
7. Replacement parameters - column_name, column_value
I've included these for completeness. I think it is useful.
BTW, the column names seem sometimes optional but I did not know the
rules. It should be documented what makes these names be shown or not
shown.
~~~
Please see the attachment which implements most of the items mentioned above.
======
Kind Regards,
Peter Smith.
Fujitsu Australia
Attachment | Content-Type | Size |
---|---|---|
PS_NITPICKS_20240822_CDR_V200001.txt | text/plain | 5.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tender Wang | 2024-08-22 03:19:23 | Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails |
Previous Message | Tender Wang | 2024-08-22 02:55:29 | Re: Small code simplification |