pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix confusion on different kinds of slots in IndexOnlyScans.
Date: Thu, 06 Jun 2019 07:07:11 +0000
Message-ID: <E1hYmUR-0002MI-71@gemulon.postgresql.org> (raw)

Fix confusion on different kinds of slots in IndexOnlyScans.

We used the same slot to store a tuple from the index, and to store a
tuple from the table. That's not OK. It worked with the heap, because
heapam_getnextslot() stores a HeapTuple to the slot, and doesn't care how
large the tts_values/nulls arrays are. But when I played with a toy table
AM implementation that used a virtual tuple, it caused memory overruns.

In the passing, tidy up comments on the ioss_PscanLen fields.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cd96389d713787b025c84869ba417c6f2f008a86

Modified Files
--------------
src/backend/executor/nodeIndexonlyscan.c | 16 +++++++++++++---
src/include/nodes/execnodes.h            |  6 ++++--
2 files changed, 17 insertions(+), 5 deletions(-)



Message-ID: <E1hYmUR-0002MI-71@gemulon.postgresql.org>
Permalink:  ../E1hYmUR-0002MI-71@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hYmUR-0002MI-71@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Fix confusion on different kinds of slots in IndexOnlyScans.
  In-Reply-To: <E1hYmUR-0002MI-71@gemulon.postgresql.org>
  References: <E1hYmUR-0002MI-71@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