| From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
|---|---|
| To: | Zhijie Hou <houzhijie22(at)gmail(dot)com> |
| Cc: | Peter Smith <smithpb2250(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, saurabh singh <saurabh(dot)singh214(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, shveta malik <shvetamalik(at)gmail(dot)com> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-11-26 09:20:39 |
| Message-ID: | CAJpy0uCoDqf8Tu6OO3LqfYqYjDU4XeApUTsdU+ti3CHV00QciQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
A few comments on v97-002:
1)
+ <para>
+ If a subscription has been created with the
+ <link linkend="sql-createsubscription-params-with-conflict-log-destination"><literal>conflict_log_destination</literal></link>
+ option set to log conflicts to a table, <application>pg_dump</application>
+ does not dump that conflict log table or its contents. Restoring the
+ subscription creates a new, empty conflict log table, whose name is derived
+ from the OID of the new subscription. Privileges that had been granted on
+ the old conflict log table are not restored, and must be granted again on
+ the new table if needed. In binary-upgrade mode, which
+ <application>pg_upgrade</application> uses, the subscription OID and its
+ conflict log table are preserved instead.
+ </para>
a) It does not say anything about 'Privileges' post upgrade. Since we
have mentioned that about pg_dump, we should mention about pg_upgrade
too.
b) Regarding " Privileges that had been granted on the old conflict
log table are not restored,"
Shall we mention comments and security labels too? Suggestion:
Privileges, comments and security labels that had been set on the old
conflict log table are not restored, and must be set again on the new
table if needed.
c) Regarding 'option set to log conflicts to a table', it will be
better to make it more clear using:
option set to <literal>table</literal> or <literal>all</literal>.
2)
+ (errcode(ERRCODE_UNDEFINED_TABLE),
+ errmsg("could not find conflict log table \"%s\" when in binary upgrade mode",
+ relname)));
Please use schema qualified name.
3)
+ i_sublogdestination = PQfnumber(res, "subconflictlogdest");
Perhaps rename i_sublogdestination to i_subconflictlogdest, to match
the column name and avoid any ambiguity.
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jim Jones | 2026-11-26 09:28:53 | Re: OOM kill in xmlelement() with large arrays |
| Previous Message | Hayato Kuroda (Fujitsu) | 2026-11-26 08:57:07 | RE: Proposal: Conflict log history table for Logical Replication |