From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Correctly set t_self for heap tuples in expand_tuple
Date: Wed, 24 Oct 2018 14:57:56 +0000
Message-ID: <E1gFKbc-0003dI-T5@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andrew@dunslane.net
Subject: Re: pgsql: Correctly set t_self for heap tuples in expand_tuple
In-Reply-To: <E1gFKbc-0003dI-T5@gemulon.postgresql.org>
References: <E1gFKbc-0003dI-T5@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox