RE: [PATCH] Support automatic sequence replication

Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>

From: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
To: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, Amit Kapila <amit.kapila16@gmail.com>, Ajin Cherian <itsajin@gmail.com>
Cc: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, shveta malik <shveta.malik@gmail.com>, Ashutosh Sharma <ashu.coek88@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-03-02T07:58:54Z
Lists: pgsql-hackers

Attachments

On Saturday, February 28, 2026 4:41 PM Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com> wrote:
> Here is the V8 patch set addressing the previous review comments:
> 
> - For 0001, I noticed that the GetSequence() function added in the patch
>   fetches the local sequence value without any privilege check. This
>   allows the worker to read sequence data even without proper SELECT
>   privilege, which seems unsafe. I've added a SELECT privilege check
>   before fetching the sequence value. Additionally, I've updated several
>   comments, made cosmetic changes, commit message update, and run
>   pgindent on all patches.
> 
> - 0002 includes the changes to synchronize sequences directly in the
>   REFRESH SEQUENCES command

Rebased the patch to silence compile warning due to a recent commit
a2c89835.

Best Regards,
Hou zj

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Don't include wait_event.h in pgstat.h

  2. Don't include proc.h in shm_mq.h

  3. Fix unsafe RTE_GROUP removal in simplify_EXISTS_query

  4. Add sequence synchronization for logical replication.