From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Support CONSTANT/NOT NULL/initial value for plpgsql composite va
Date: Wed, 14 Feb 2018 03:15:24 +0000
Message-ID: <E1elnXY-0005Yp-0b@gemulon.postgresql.org> (raw)
Support CONSTANT/NOT NULL/initial value for plpgsql composite variables.
These features were never implemented previously for composite or record
variables ... not that the documentation admitted it, so there's no doc
updates here.
This also fixes some issues concerning enforcing DOMAIN NOT NULL
constraints against plpgsql variables, although I'm not sure that
that topic is completely dealt with.
I created a new plpgsql test file for these features, and moved the
one relevant existing test case into that file.
Tom Lane, reviewed by Daniel Gustafsson
Discussion: https://postgr.es/m/18362.1514605650@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f9263006d871d127794a402a7bef713fdd882156
Modified Files
--------------
src/pl/plpgsql/src/Makefile | 3 +-
src/pl/plpgsql/src/expected/plpgsql_varprops.out | 300 +++++++++++++++++++++++
src/pl/plpgsql/src/pl_comp.c | 17 +-
src/pl/plpgsql/src/pl_exec.c | 72 ++++--
src/pl/plpgsql/src/pl_funcs.c | 15 ++
src/pl/plpgsql/src/pl_gram.y | 75 +++---
src/pl/plpgsql/src/plpgsql.h | 27 +-
src/pl/plpgsql/src/sql/plpgsql_varprops.sql | 249 +++++++++++++++++++
src/test/regress/expected/plpgsql.out | 36 ---
src/test/regress/sql/plpgsql.sql | 26 --
10 files changed, 686 insertions(+), 134 deletions(-)
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: Support CONSTANT/NOT NULL/initial value for plpgsql composite va
In-Reply-To: <E1elnXY-0005Yp-0b@gemulon.postgresql.org>
References: <E1elnXY-0005Yp-0b@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