Re: Mistake in Syntax definition of ALTER TABLE - Mailing list pgsql-docs

From Tom Lane
Subject Re: Mistake in Syntax definition of ALTER TABLE
Date
Msg-id 955706.1668460316@sss.pgh.pa.us
Whole thread Raw
In response to Mistake in Syntax definition of ALTER TABLE  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> I think there's a mistake under "and table_constraint is:" where the
> different constraints are listed.
> Here: https://www.postgresql.org/docs/current/sql-altertable.html

> The definition here allows for CHECK constraints to be deferrable when they
> are not.

It's not a mistake, we are simply not trying to make the syntax diagram
reflect that particular implementation restriction.  I doubt that making
it do so would be an improvement: we'd have to have two kinds of
column_constraint in the diagram.

            regards, tom lane



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: Consistency of units (bits vs bytes)
Next
From: Daniel Gustafsson
Date:
Subject: Re: Consistency of units (bits vs bytes)