pgsql: Have table_insert and siblings use an unsigned type for options

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Have table_insert and siblings use an unsigned type for options
Date: 2026-03-30 12:04:00
Message-ID: E1w7BLb-00297x-2w@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Have table_insert and siblings use an unsigned type for options

Using signed types can lead to bugs, such as the one fixed by commit
2a2e1b470b9b.

Discussion: https://postgr.es/m/44e6ze3kuunhky63wmfjxrmn72pds2whwf5ok6hpz7c4my7k2h@l65zhpcuasnf

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1bd6f22f43ac1bd2215ba4ef720fc4f18fea26e5

Modified Files
--------------
src/backend/access/heap/heapam.c | 8 ++++----
src/backend/access/heap/heapam_handler.c | 4 ++--
src/include/access/heapam.h | 4 ++--
src/include/access/tableam.h | 21 ++++++++++++---------
4 files changed, 20 insertions(+), 17 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Melanie Plageman 2026-03-30 13:38:37 pgsql: Make it cheap to check if a relation is modified by a query
Previous Message Peter Eisentraut 2026-03-30 08:18:40 pgsql: headerscheck: Avoid mutual inclusion of pg_config.h and c.h