pgsql: Add test for logical decoding with an oid8 TOAST table and OID > - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add test for logical decoding with an oid8 TOAST table and OID >
Date
Msg-id E1x7n1w-00000000Lu0-0J2K@gemulon.postgresql.org
Whole thread
List 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@gmail.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(+)


pgsql-committers by date:

Previous
From: Amit Langote
Date:
Subject: pgsql: Fix RI fast-path permission checks
Next
From: Amit Langote
Date:
Subject: pgsql: Invalidate RI fast-path metadata on operator family changes