| From: | Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com> |
|---|---|
| To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Aleksander Alekseev <aleksander(at)tigerdata(dot)com> |
| Subject: | Re: [PATCH] Table sync race with REFRESH PUBLICATION |
| Date: | 2026-11-25 14:01:43 |
| Message-ID: | CAJTYsWVGYvmf7YJPJ9yC7YOy+su8=OHkFhThsEhhYZ8=UTcjiw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On Wed, 25 Nov 2026 at 11:34, Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
> 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.
> */
Thanks for re-reviewing the patch.
I've updated the comment after altering a bit. Attached v4.
Regards,
Ayush
| Attachment | Content-Type | Size |
|---|---|---|
| v4-0001-Recheck-table-sync-state-after-refresh.patch | application/octet-stream | 2.8 KB |
| v4-0002-Test-table-sync-after-a-concurrent-refresh.patch | application/octet-stream | 5.8 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-11-25 14:04:43 | Re: Small cleanup of leftover pre-1.1.0 OpenSSL code |
| Previous Message | Heikki Linnakangas | 2026-11-25 14:01:30 | Re: Should we skip foreign key checks in binary upgrade mode? |