postgresql/contrib/test_decoding
Álvaro Herrera eb2e2eb4d4
Don't lose column values on REPACK
Commit 28d534e2ae introduced reform_tuple() with a fast path that
returns the source tuple verbatim when no dropped columns require fixing
up.  I (Álvaro) failed to realize that this broke handling of columns
with a 'missingval' defined: after a VACUUM FULL, CLUSTER, or REPACK
operation, the catalogued missingval is thrown away, so the tuples are
no longer correct.

Fix by forcing the rewrite when the tuple is shorter than the tuple
descriptor.

Author: Satya Narlapuram <satyanarlapuram@gmail.com>
Discussion: https://postgr.es/m/CAHg+QDeoccU5CudrJpmSKZfKZ1gRMNY=5BxSC=JpHgkonzgcOw@mail.gmail.com
2026-05-05 10:24:49 +02:00
..
expected Don't lose column values on REPACK 2026-05-05 10:24:49 +02:00
specs Prevent unintended dropping of active replication origins. 2026-01-14 07:15:46 +00:00
sql Don't lose column values on REPACK 2026-05-05 10:24:49 +02:00
t Update copyright for 2026 2026-01-01 13:24:10 -05:00
.gitignore Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
logical.conf Stabilize streaming tests in test_decoding. 2022-04-20 08:59:55 +05:30
Makefile Move REPACK (CONCURRENTLY) test out of stock regression tests 2026-04-23 12:34:41 +02:00
meson.build Move REPACK (CONCURRENTLY) test out of stock regression tests 2026-04-23 12:34:41 +02:00
test_decoding.c Standardize replication origin naming to use "ReplOrigin". 2026-01-28 11:03:29 -08:00