Re: Confirming - materialized views cannot have foreign key constraints. - Mailing list pgsql-general

From Michael Paquier
Subject Re: Confirming - materialized views cannot have foreign key constraints.
Date
Msg-id CAB7nPqSiE66nHSYyJVrQbpChjV+Hy-7wkGjWcQTRYnPPaohD1Q@mail.gmail.com
Whole thread Raw
In response to Confirming - materialized views cannot have foreign key constraints.  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general


On Sun, Jul 12, 2015 at 7:54 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:
Working with 9.3 at the moment and I don't see any syntax that would let me create one...

I don't recall you can create FKs on materialized views. CREATE MATERIALIZED VIEW has no option regarding that, and ALTER TABLE ADD CONSTRAINT prevents its creation.
--
Michael

pgsql-general by date:

Previous
From: James Cloos
Date:
Subject: Re: How to test SSL cert from CA?
Next
From: Ramesh T
Date:
Subject: Re: timestamp check