]> granicus.if.org Git - postgresql/commit
Mark CHECK constraints declared NOT VALID valid if created with table.
authorRobert Haas <rhaas@postgresql.org>
Wed, 16 Dec 2015 12:43:56 +0000 (07:43 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 16 Dec 2015 12:43:56 +0000 (07:43 -0500)
commitf27a6b15e6566fba7748d0d9a3fc5bcfd52c4a1b
tree8fbfe141a6684f3517078414fb007b496d007be3
parent0625dbb0b96e2ecd557eb5bcdc458679123951db
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.
src/backend/catalog/heap.c
src/backend/parser/gram.y
src/backend/parser/parse_utilcmd.c
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql