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