Re: Proposal: Conflict log history table for Logical Replication

From: Zhijie Hou <houzhijie22(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: 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>, shveta malik <shveta(dot)malik(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 07:51:10
Message-ID: 2753b65e-9de8-4306-9f96-fc7e8d4c2ef5@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Tue, Nov24, 2026 at 03:46 PM Zhijie Hou wrote:
>
> Here is the v97 patch set (only 0001 is changed, along with minor
> commit message and comment polish).

I reviewed 0002 and have few comments:

1.

The ACLs on the pg_conflict schema are not preserved during upgrade, so
a user whose access to pg_conflict.* was revoked can unexpectedly access
it again after upgrading. I think we shall update
selectDumpableNamespace() so that pg_conflict falls into the pg_catalog
branch to preserve them.

2.

<application>pg_upgrade</application> also preserves the subscription's
OID, along with its conflict log table, if conflict_log_destination
is set to table or all.

We shall make it accurate that subscription OID is unconditionally
perserved.

3.
proname => 'binary_upgrade_set_next_attribute_versions', provolatile
=> 'v',
proparallel => 'u', prorettype => 'void', proargtypes => '_pg_lsn',
prosrc => 'binary_upgrade_set_next_attribute_versions' },
+{ oid => '8407', descr => 'for use by pg_upgrade',
+ proname => 'binary_upgrade_set_next_pg_subscription_oid', provolatile
=> 'v',
+ proparallel => 'r', prorettype => 'void', proargtypes => 'oid',
+ prosrc => 'binary_upgrade_set_next_pg_subscription_oid' },

I think we'd better set proparallel = 'u' to be consistent with other
binary_upgrade functions.

--
Best Regards,
Zhijie Hou

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikhail Gribkov 2026-11-26 07:53:27 Re: Bitwise OR instead of logical one in test_aio.c
Previous Message Matthew Mochalkin 2026-11-26 07:15:01 Re: libpq: SCRAM client proofs serialize across threads on OpenSSL 3 (re-init of the HMAC per PBKDF2 iteration)