pg_resetwal: do not allow zero next multixact offset

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: pg_resetwal: do not allow zero next multixact offset
Date: 2026-07-23 07:33:57
Message-ID: CAN4CZFNoO6MUkg526TmA=mC_RjY2gp4VKCnvK6y12v3ppOkhJA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

Multixact offset 0 is invalid with the recent 64-bit changes, but it
is still allowed by pg_resetwal (-O 0) and results in broken behavior.

The attached patch adds changes the default value in resetwal and adds
a simple check to reject 0.

Attachment Content-Type Size
0001-pg_resetwal-do-not-allow-zero-next-multixact-offset.patch application/octet-stream 3.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-07-23 07:43:26 Re: Fix error handling in getCopyDataMessage and pqFunctionCall3
Previous Message Ewan Young 2026-07-23 07:25:58 Re: Fix missing FORMAT when deparsing JSON_ARRAY(query)