Re: NOT NULL constraints in foreign tables - Mailing list pgsql-hackers

From Robert Haas
Subject Re: NOT NULL constraints in foreign tables
Date
Msg-id CA+TgmoZ8zft8ks6PJiHd0JiFJEJ-krYQYSegbwhX9dYUaVLaeQ@mail.gmail.com
Whole thread Raw
In response to NOT NULL constraints in foreign tables  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: NOT NULL constraints in foreign tables
Re: NOT NULL constraints in foreign tables
Re: NOT NULL constraints in foreign tables
List pgsql-hackers
On Fri, Aug 17, 2012 at 2:58 PM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> I mean, what are NOT NULL in foreign tables for?  Are they harmed or
> helped by having pg_constraint rows?

As I've mentioned when this has come up before, I think that
constraints on foreign tables should be viewed as declarative
statements about the contents of the foreign data that the DB will
assume true.  This could be useful for a variety of purposes:
constraint exclusion, query optimization, etc.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: NOT NULL constraints in foreign tables
Next
From: Robert Haas
Date:
Subject: Re: ALTER TABLE lock strength reduction patch is unsafe