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

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Confirming - materialized views cannot have foreign key constraints.
Date: 2015-07-12 12:59:35
Message-ID: CAB7nPqSiE66nHSYyJVrQbpChjV+Hy-7wkGjWcQTRYnPPaohD1Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Jul 12, 2015 at 7:54 AM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ramesh T 2015-07-13 09:37:06 Re: timestamp check
Previous Message Ramesh T 2015-07-12 12:08:08 Re: xmltable in postgres like in oracle..?