Move system identifier generation to a common helper

From: Imran Zaheer <imran(dot)zhir(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Move system identifier generation to a common helper
Date: 2026-06-04 12:22:08
Message-ID: CA+UBfa=yN+PKPiKPFAryo1AMjwzD+sH28i=_bP7fzZEgSP2kBA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

The code used to generate a new system identifier is duplicated in
multiple locations, including BootStrapXLOG(), pg_createsubscriber, and
pg_resetwal.

Move the generation logic into a common GenerateSystemIdentifier()
helper so that all callers use a single implementation, avoiding
duplication of the same algorithm.

Thanks
Imran Zaheer

Attachment Content-Type Size
v1-0001-Move-system-identifier-generation-to-a-common-hel.patch text/x-patch 8.8 KB

Browse pgsql-hackers by date

  From Date Subject
Previous Message Henson Choi 2026-06-04 12:15:40 Re: Row pattern recognition