pgsql: Mark CHECK constraints declared NOT VALID valid if created with

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Mark CHECK constraints declared NOT VALID valid if created with
Date: 2015-12-16 12:47:11
Message-ID: E1a9BU7-0007Ov-DO@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Mark CHECK constraints declared NOT VALID valid if created with table.

FOREIGN KEY constraints have behaved this way for a long time, but for
some reason the behavior of CHECK constraints has been inconsistent up
until now.

Amit Langote and Amul Sul, with assorted tweaks by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f27a6b15e6566fba7748d0d9a3fc5bcfd52c4a1b

Modified Files
--------------
src/backend/catalog/heap.c | 2 +-
src/backend/parser/gram.y | 2 ++
src/backend/parser/parse_utilcmd.c | 45 +++++++++++++++++++++++++++--
src/test/regress/expected/alter_table.out | 11 ++++++-
src/test/regress/sql/alter_table.sql | 5 +++-
5 files changed, 60 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2015-12-16 20:28:33 pgsql: Speed up CREATE INDEX CONCURRENTLY's TID sort.
Previous Message Tom Lane 2015-12-15 22:26:51 pgsql: Stamp 9.5rc1.