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

Robert Haas <rhaas@postgresql.org>

Commit: f27a6b15e6566fba7748d0d9a3fc5bcfd52c4a1b
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-12-16T12:43:56Z
Releases: 9.6.0
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.

Files