| From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
|---|---|
| To: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
| Cc: | Peter Smith <smithpb2250(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(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 <shveta(dot)malik(at)gmail(dot)com> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-01-13 10:28:54 |
| Message-ID: | CAJpy0uBDLnfhuSiev8W9ZMFNTzUmqhds2dKayUpLoN-z1dtsLA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sat, Jan 10, 2026 at 6:45 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
>
>>
> Here is the updated patch
>
Thanks, I will review the code. Few concerns while experimenting with 001 alone:
1)
I am able to insert and update rows in pg_conflict.pg_conflict_16394.
It should be restricted.
2)
I think we need to block 'SELECT for UPDATE' and similar operations on
CLT. Currently it is allowed on CLT.
See this:
postgres=# SELECT * FROM pg_toast.pg_toast_3466 for UPDATE;
ERROR: cannot lock rows in TOAST relation "pg_toast_3466"
postgres=# SELECT * FROM pg_conflict.pg_conflict_16394 for UPDATE;
....
(1 row)
3)
We currently skip ANALYZE on TOAST tables, but I’m not sure whether
the same restriction should apply to CLT. Since users are expected to
query CLT frequently, collecting statistics could be beneficial. Even
though there are currently no indexes or other structures to enable
more optimal plans, having statistics should not harm. Thoughts?
postgres=# analyze pg_toast.pg_toast_16399;
WARNING: skipping "pg_toast_16399" --- cannot analyze non-tables or
special system tables
postgres=# analyze pg_conflict.pg_conflict_16394;
ANALYZE
4)
It will be good to show 'Conflict Log Table:' in \dRs command.
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dilip Kumar | 2026-01-13 10:39:30 | Re: Proposal: Conflict log history table for Logical Replication |
| Previous Message | Dilip Kumar | 2026-01-13 10:28:15 | Re: Proposal: Conflict log history table for Logical Replication |