pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clarify the distinction between public and private SPITupleTable
Date: Wed, 17 Jul 2019 18:55:17 +0000
Message-ID: <E1hnp5B-0006LF-IY@gemulon.postgresql.org> (raw)

Clarify the distinction between public and private SPITupleTable fields.

The fields that we consider public are "tupdesc" and "vals", which
historically are in the middle of the struct.  Move them to the front
(this should be perfectly safe to do in HEAD) and add comments to make
it quite clear which fields are public or not.

Also adjust spi.sgml's documentation of the struct to match.
That doc had bit-rotted somewhat, as it was missing some fields.
(Arguably we should just remove all the private fields from the docs,
but for now I refrained.)

Daniel Gustafsson, reviewed by Fabien Coelho

Discussion: https://postgr.es/m/0D19F836-B743-4340-B6A2-F148CA3DD1F0@yesql.se

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/spi.sgml      | 21 +++++++++++++--------
src/include/executor/spi.h |  7 +++++--
2 files changed, 18 insertions(+), 10 deletions(-)



Message-ID: <E1hnp5B-0006LF-IY@gemulon.postgresql.org>
Permalink:  ../E1hnp5B-0006LF-IY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hnp5B-0006LF-IY@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Clarify the distinction between public and private SPITupleTable
  In-Reply-To: <E1hnp5B-0006LF-IY@gemulon.postgresql.org>
  References: <E1hnp5B-0006LF-IY@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