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: document that we expect CHECK constraint conditions to be i
Date: Fri, 07 Dec 2018 21:41:06 +0000
Message-ID: <E1gVNru-000780-Pd@gemulon.postgresql.org> (raw)

Doc: document that we expect CHECK constraint conditions to be immutable.

This restriction is implicit in the check-only-once implementation we use
for table and domain constraints, but it wasn't spelled out anywhere, nor
was there any advice about how to alter a constraint's behavior safely.
Improve that.

I was also dissatisfied with the documentation of ALTER DOMAIN VALIDATE
CONSTRAINT, which entirely failed to explain the use of that feature; and
thence decided that ALTER TABLE VALIDATE CONSTRAINT could be documented
better as well.

Perhaps we should back-patch this, along with the related commit 36d442a25,
but for now I refrained.

Discussion: https://postgr.es/m/12539.1544107316@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f66c657f2b4eb55c68593d5c14256115aa6a0ea

Modified Files
--------------
doc/src/sgml/ddl.sgml               | 28 ++++++++++++-
doc/src/sgml/ref/alter_domain.sgml  | 21 ++++++++--
doc/src/sgml/ref/alter_table.sgml   | 83 ++++++++++++++++++++++++-------------
doc/src/sgml/ref/create_domain.sgml | 24 +++++++++++
4 files changed, 123 insertions(+), 33 deletions(-)



Message-ID: <E1gVNru-000780-Pd@gemulon.postgresql.org>
Permalink:  ../E1gVNru-000780-Pd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gVNru-000780-Pd@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: document that we expect CHECK constraint conditions to be i
  In-Reply-To: <E1gVNru-000780-Pd@gemulon.postgresql.org>
  References: <E1gVNru-000780-Pd@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