Confirming - materialized views cannot have foreign key constraints.

Started by David G. Johnstonalmost 11 years ago2 messagesgeneral
Jump to latest
#1David G. Johnston
david.g.johnston@gmail.com

Working with 9.3 at the moment and I don't see any syntax that would let me
create one...

Thanks

David J.

#2Michael Paquier
michael@paquier.xyz
In reply to: David G. Johnston (#1)
Re: Confirming - materialized views cannot have foreign key constraints.

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