Re: BUG #15451: Error adding foriegn key constraint

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: BUG #15451: Error adding foriegn key constraint
Дата
Msg-id
20181022191208.po23ymm4c45qziqk@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
BUG #15451: Error adding foriegn key constraint PG Bug reporting form <noreply@postgresql.org>
Re: BUG #15451: Error adding foriegn key constraint Andres Freund <andres@anarazel.de>
Re: BUG #15451: Error adding foriegn key constraint Alvaro Herrera <alvherre@2ndquadrant.com>
On 2018-Oct-22, PG Bug reporting form wrote:

> ERROR: constraints on permanent tables may reference only permanent tables
> 
> ALTER TABLE bnm.table1
>     ADD CONSTRAINT id_fk FOREIGN KEY (bnm_id)
>     REFERENCES bnm.table2 (id) MATCH SIMPLE
>     ON UPDATE NO ACTION
>     ON DELETE NO ACTION;

Is table2 an unlogged table perchance?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

В списке pgsql-bugs по дате отправления
От: Andres Freund
Дата:
От: PG Bug reporting form
Дата:
FAQ