Re: postgres_fdw foreign keys with default sequence - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: postgres_fdw foreign keys with default sequence
Date
Msg-id 1457828247.495495.1424266606165.JavaMail.yahoo@mail.yahoo.com
Whole thread Raw
In response to Re: postgres_fdw foreign keys with default sequence  (Tim Kane <tim.kane@gmail.com>)
List pgsql-hackers
Tim Kane <tim.kane@gmail.com> wrote:

> CREATE MATERIALISED VIEW local.devices;
>
> CREATE test_table (device_id bigint FOREIGN KEY (device_id) REFERENCES local.devices (device_id) );
>
> ERROR:  referenced relation "devices" is not a table

In the future, please show code that you have actually run.  In
this case it's pretty easy to know how to answer, but in others it
may really draw out the process of helping you.

At this time materialized views do not support constraints, and may
not be referenced in foreign key definitions.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Auditing extension for PostgreSQL (Take 2)
Next
From: Stephen Frost
Date:
Subject: Re: pgaudit - an auditing extension for PostgreSQL