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>)
Список pgsql-bugs
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
Дата:
Сообщение: Re: BUG #15451: Error adding foriegn key constraint
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15452: 10.5 and reproducible "ERROR: could not read block 0 infile..." when creating functional index