pgsql: Add test for logical decoding with an oid8 TOAST table and OID >

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add test for logical decoding with an oid8 TOAST table and OID >
Date: 2026-09-19 04:50:28
Message-ID: E1x7n1w-00000000Lu0-0J2K@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add test for logical decoding with an oid8 TOAST table and OID > 2^32

The test_decoding tests would usually run with an OID counter way below
the UINT32_MAX limit, meaning that any toast value handled would always
fit in 4 bytes.

This commit adds a short test based on an oid8 TOAST table and an OID
past 2^32, forcing an overflow check of the logical replication code
when dealing with the detoasting of externally TOASTed values.

Author: Rui Zhao <zhaorui126(at)gmail(dot)com>
Discussion: https://postgr.es/m/aqd_gYs35v--sVlR@paquier.xyz

Branch
------
master

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

Modified Files
--------------
src/test/recovery/t/006_logical_decoding.pl | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Langote 2026-09-19 06:59:32 pgsql: Invalidate RI fast-path metadata on operator family changes
Previous Message Amit Langote 2026-09-19 02:06:13 pgsql: Fix RI fast-path permission checks