Re: Allow to specify #columns in heap/index_form_tuple

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Anastasia Lubennikova <a(dot)lubennikova(at)postgrespro(dot)ru>
Subject: Re: Allow to specify #columns in heap/index_form_tuple
Date: 2017-03-31 19:19:38
Message-ID: CAH2-Wz=VMDH8pFAZX9WAH9Bn5Ast5vrnA0xSz+GsfRs12bp_sg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Mar 31, 2017 at 3:03 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> The reason it works fine for heap tuples is that heap tuple headers
> explicitly record the number of attributes in the tuple. Index
> tuples don't.

Per my previous mail, I think we can change things so that Index
tuples effectively record that in all relevant cases. i.e., in what I
called separator key index tuples -- high key tuples in leaf pages,
and all internal page index tuples (high keys and downlinks/internal
items).

We already store a minus infinity downlink on internal pages, which
doesn't bother diagnostic tools at all, despite being its own special
case without real Datum values.

--
Peter Geoghegan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-03-31 19:25:19 Re: postgres_fdw IMPORT SCHEMA and partitioned tables
Previous Message Oleg Bartunov 2017-03-31 19:17:52 Re: [PATCH] few fts functions for jsonb