Correctly set t_self for heap tuples in expand_tuple
Andrew Dunstan <andrew@dunslane.net>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/heaptuple.c | modified | +1 −1 |
| src/test/regress/expected/fast_default.out | modified | +10 −0 |
| src/test/regress/sql/fast_default.sql | modified | +12 −0 |