pgsql: Correctly set t_self for heap tuples in expand_tuple

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Correctly set t_self for heap tuples in expand_tuple
Date: 2018-10-24 14:57:56
Message-ID: E1gFKbc-0003dI-T5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/040a1df6149f852c3b8de96d9d13258af8a39e23

Modified Files
--------------
src/backend/access/common/heaptuple.c | 2 +-
src/test/regress/expected/fast_default.out | 10 ++++++++++
src/test/regress/sql/fast_default.sql | 12 ++++++++++++
3 files changed, 23 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2018-10-24 23:41:13 pgsql: Fix typo in regression test comment
Previous Message Michael Paquier 2018-10-24 08:06:48 pgsql: List wait events in alphabetical order in documentation