]> 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:57:35 +0000 (10:57 -0400)
commit372102b81dd0096764b712deffab00732f3c9d80
tree9c684aee32a129d79493311ceb1d17819f2c5711
parent374fe86a8fdd543a7eb11c68ac8c19eff29640d3
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