pgsql: concurrent repack: check there are no leftover toast attribs

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: concurrent repack: check there are no leftover toast attribs
Date: 2026-06-16 12:28:39
Message-ID: E1wZSuF-000Z3a-2D@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

concurrent repack: check there are no leftover toast attribs

Upon reading attributes from the file of concurrent changes, verify that
none are left over unprocessed after we read all columns for the tuple.
This should never happen, so add an elog(ERROR) for it.

While at it, downgrade a nearby message from ereport() to elog(). These
things should never happen.

Author: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
Discussion: https://postgr.es/m/CAJ7c6TMSF7cANU8nEJ9E28EvU74tE4H7AzT292Rt3ZuHqqxq8w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2a8cabc47f9502d26b1212851b6d43e5c06df22

Modified Files
--------------
src/backend/commands/repack.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2026-06-16 12:30:02 Re: pgsql: Add CONCURRENTLY option to REPACK
Previous Message Michael Paquier 2026-06-16 06:58:41 pgsql: pg_restore: Use dependency-based matching for STATISTICS DATA