foreign table creation and NOT VALID check constraints
Amit Langote <langote_amit_f8@lab.ntt.co.jp>
From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2017-08-01T06:16:23Z
Lists: pgsql-hackers
In f27a6b15e656 (9.6 & later), we decided to "Mark CHECK constraints declared NOT VALID valid if created with table." In retrospect, constraints on foreign tables should have been excluded from consideration in that commit, because the thinking behind the aforementioned commit (that the constraint is trivially validated because the newly created table contains no data) does not equally apply to the foreign tables case. Should we do something about that? Thanks, Amit
Commits
-
Allow a foreign table CHECK constraint to be initially NOT VALID.
- 1f220c39072b 9.6.4 landed
- 86705aa8c3f3 10.0 landed
-
Mark CHECK constraints declared NOT VALID valid if created with table.
- f27a6b15e656 9.6.0 cited