From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve wording of two error messages related to generated colum
Date: Mon, 23 Nov 2020 16:15:26 +0000
Message-ID: <E1khEUw-0003ve-0R@gemulon.postgresql.org> (raw)
Improve wording of two error messages related to generated columns.
Clarify that you can "insert" into a generated column as long as what
you're inserting is a DEFAULT placeholder.
Also, use ERRCODE_GENERATED_ALWAYS in place of ERRCODE_SYNTAX_ERROR;
there doesn't seem to be any reason to use the less specific errcode.
Discussion: https://postgr.es/m/9q0sgcr416t.fsf@gmx.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d36228a9fcdccd57a7dc332572eb9837c7c301e6
Modified Files
--------------
src/backend/rewrite/rewriteHandler.c | 17 ++++++++++-------
src/test/regress/expected/generated.out | 20 ++++++++++----------
src/test/regress/expected/identity.out | 12 ++++++------
src/test/regress/expected/updatable_views.out | 4 ++--
4 files changed, 28 insertions(+), 25 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: Improve wording of two error messages related to generated colum
In-Reply-To: <E1khEUw-0003ve-0R@gemulon.postgresql.org>
References: <E1khEUw-0003ve-0R@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