Re: [PATCH] Table sync race with REFRESH PUBLICATION

From: Peter Smith <smithpb2250(at)gmail(dot)com>
To: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Table sync race with REFRESH PUBLICATION
Date: 2026-11-25 06:04:27
Message-ID: CAHut+Pv2H59Tstq_8B66GVTh0s_mxDztSCyszN3MF_rQXuonAw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Ayush,

I discussed your latest v3 patch with my LLM. It agreed with the code,
but recommended more explanation about the logic/details.

e.g.

SUGGESTED COMMENT (before the current_relstate assignment)
/*
* Re-read the state under the lock. A concurrent REFRESH
* may have removed or re-added the table while we waited.
* Only the apply worker launches sync workers, so a
* re-added table can't have reached SYNCDONE yet. Skip
* rather than error, since that would disable the whole
* subscription under disable_on_error.
*/

======
Kind Regards,
Peter Smith.
Fujitsu Australia

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jiho Lee 2026-11-25 06:07:17 Re: PGC_S_ARGV vs pg_file_settings and pg_settings
Previous Message 이지호 2026-11-25 05:54:29 [PATCH] Don't report unchanged auto-tuned settings as needing a restart