pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Consistently truncate non-key suffix columns.
Date: Mon, 30 Mar 2020 19:04:18 +0000
Message-ID: <E1jIzhq-0003Ec-27@gemulon.postgresql.org> (raw)

Consistently truncate non-key suffix columns.

INCLUDE indexes failed to have their non-key attributes physically
truncated away in certain rare cases.  This led to physically larger
pivot tuples that contained useless non-key attribute values.  The
impact on users should be negligible, but this is still clearly a
regression (Postgres 11 supports INCLUDE indexes, and yet was not
affected).

The bug appeared in commit dd299df8, which introduced "true" suffix
truncation of key attributes.

Discussion: https://postgr.es/m/CAH2-Wz=E8pkV9ivRSFHtv812H5ckf8s1-yhx61_WrJbKccGcrQ@mail.gmail.com
Backpatch: 12-, where "true" suffix truncation was introduced.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4b42a89938ac9d2ec06e9d831356407040e9094c

Modified Files
--------------
src/backend/access/nbtree/nbtutils.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



view thread (2+ messages)

Message-ID: <E1jIzhq-0003Ec-27@gemulon.postgresql.org>
Permalink:  ../E1jIzhq-0003Ec-27@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jIzhq-0003Ec-27@gemulon.postgresql.org

 · 

reply

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: pg@bowt.ie
  Subject: Re: pgsql: Consistently truncate non-key suffix columns.
  In-Reply-To: <E1jIzhq-0003Ec-27@gemulon.postgresql.org>
  References: <E1jIzhq-0003Ec-27@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