]> granicus.if.org Git - postgresql/commit
Correctly set t_self for heap tuples in expand_tuple
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 24 Oct 2018 14:45:34 +0000 (10:45 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 24 Oct 2018 14:56:27 +0000 (10:56 -0400)
commit040a1df6149f852c3b8de96d9d13258af8a39e23
tree864706cd0ce76295b6ee8549906cd78da8967ff5
parent5ef037cf0b9e130120c5a788f1f1048f6242b076
Correctly set t_self for heap tuples in expand_tuple

Commit 16828d5c0 incorrectly set an invalid pointer for t_self for heap
tuples. This patch correctly copies it from the source tuple, and
includes a regression test that relies on it being set correctly.

Backpatch to release 11.

Fixes bug #15448 reported by Tillmann Schulz

Diagnosis and test case by Amit Langote
src/backend/access/common/heaptuple.c
src/test/regress/expected/fast_default.out
src/test/regress/sql/fast_default.sql