RE: sequencesync worker race with REFRESH SEQUENCES

From: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
To: 'vignesh C' <vignesh21(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: sequencesync worker race with REFRESH SEQUENCES
Date: 2026-07-22 06:28:18
Message-ID: OS9PR01MB12149488D158FF69F7D1F200FF5C12@OS9PR01MB12149.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear Vignesh,

> The attached patch has the changes for the same. This patch also fixes
> the issue reported by Kuroda-san at [1].

Thanks for updating the patch. I confirmed after applying your patch, the ALTER
SUBSCRIPTION could raise an ERROR like:

```
postgres=# ALTER SERVER server OPTIONS (SET port '5434');
ALTER SERVER
postgres=# ALTER SUBSCRIPTION sub REFRESH SEQUENCES ;
ERROR: cannot synchronize sequences if the publisher is running a version earlier than PostgreSQL 19
```

... because the backend always confirms the remove version before updating the local catalog.
I have no comments anymore.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-07-22 06:28:56 Re: injection_points: canceled or terminated waiters leak their wait slots
Previous Message Chao Li 2026-07-22 06:21:27 Fix missing FORMAT when deparsing JSON_ARRAY(query)