Thread: Confirming - materialized views cannot have foreign key constraints.

Confirming - materialized views cannot have foreign key constraints.

From
"David G. Johnston"
Date:
Working with 9.3 at the moment and I don't see any syntax that would let me create one...

Thanks

David J.

Re: Confirming - materialized views cannot have foreign key constraints.

From
Michael Paquier
Date:


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