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: Doc: improve discussion of variable substitution in PL/pgSQL.
Date: Wed, 17 Mar 2021 17:09:19 +0000
Message-ID: <E1lMZfb-0006kW-Ja@gemulon.postgresql.org> (raw)

Doc: improve discussion of variable substitution in PL/pgSQL.

This was a bit disjointed, partly because of a not-well-considered
decision to document SQL commands that don't return result rows as
though they had nothing in common with commands that do.  Rearrange
so that we have one discussion of variable substitution that clearly
applies to all types of SQL commands, and then handle the question
of processing command output separately.  Clarify that EXPLAIN,
CREATE TABLE AS SELECT, and similar commands that incorporate an
optimizable statement will act like optimizable statements for the
purposes of variable substitution.  Do a bunch of minor wordsmithing
in the same area.

David Johnston and Tom Lane, reviewed by Pavel Stehule and David
Steele

Discussion: https://postgr.es/m/CAKFQuwYvMKucM5fnZvHSo-ah4S=_n9gmKeu6EAo=_fTrohunqQ@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/plpgsql.sgml | 172 ++++++++++++++++++++++++++++++----------------
1 file changed, 114 insertions(+), 58 deletions(-)



Message-ID: <E1lMZfb-0006kW-Ja@gemulon.postgresql.org>
Permalink:  ../E1lMZfb-0006kW-Ja@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lMZfb-0006kW-Ja@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: Doc: improve discussion of variable substitution in PL/pgSQL.
  In-Reply-To: <E1lMZfb-0006kW-Ja@gemulon.postgresql.org>
  References: <E1lMZfb-0006kW-Ja@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