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: Rethink recently-added SPI interfaces.
Date: Tue, 26 Jan 2021 21:37:31 +0000
Message-ID: <E1l4W1j-0007Y2-Ne@gemulon.postgresql.org> (raw)

Rethink recently-added SPI interfaces.

SPI_execute_with_receiver and SPI_cursor_parse_open_with_paramlist are
new in v14 (cf. commit 2f48ede08).  Before they can get out the door,
let's change their APIs to follow the practice recently established by
SPI_prepare_extended etc: shove all optional arguments into a struct
that callers are supposed to pre-zero.  The hope is to allow future
addition of more options without either API breakage or a continuing
proliferation of new SPI entry points.  With that in mind, choose
slightly more generic names for them: SPI_execute_extended and
SPI_cursor_parse_open respectively.

Discussion: https://postgr.es/m/CAFj8pRCLPdDAETvR7Po7gC5y_ibkn_-bOzbeJb39WHms01194Q@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/spi.sgml        | 306 ++++++++++++++++++++++++++-----------------
src/backend/executor/spi.c   | 114 +++++++---------
src/include/executor/spi.h   |  24 ++--
src/pl/plpgsql/src/pl_exec.c |  46 ++++---
4 files changed, 280 insertions(+), 210 deletions(-)



Message-ID: <E1l4W1j-0007Y2-Ne@gemulon.postgresql.org>
Permalink:  ../E1l4W1j-0007Y2-Ne@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l4W1j-0007Y2-Ne@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: Rethink recently-added SPI interfaces.
  In-Reply-To: <E1l4W1j-0007Y2-Ne@gemulon.postgresql.org>
  References: <E1l4W1j-0007Y2-Ne@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