Re: [HACKERS] foreign table creation and NOT VALID check constraints - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [HACKERS] foreign table creation and NOT VALID check constraints
Date
Msg-id CANP8+jL=bbS6cZRc28=AE2_WwQH=K+mg0zzBennFjEiXsyuTtw@mail.gmail.com
Whole thread Raw
In response to [HACKERS] foreign table creation and NOT VALID check constraints  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Responses Re: [HACKERS] foreign table creation and NOT VALID check constraints  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
On 1 August 2017 at 07:16, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> wrote:
> 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?

In what way does it not apply? Do you have a failure case?

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: [HACKERS] foreign table creation and NOT VALID check constraints
Next
From: Yugo Nagata
Date:
Subject: [HACKERS] A little improvementof ApplyLauncherMain loop code