Re: postgres_fdw foreign keys with default sequence

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: postgres_fdw foreign keys with default sequence
Дата
Msg-id 1457828247.495495.1424266606165.JavaMail.yahoo@mail.yahoo.com
обсуждение исходный текст
Ответ на Re: postgres_fdw foreign keys with default sequence  (Tim Kane <tim.kane@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Auditing extension for PostgreSQL (Take 2)
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: pgaudit - an auditing extension for PostgreSQL