Re: Deferrable FK not behaving as expected.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deferrable FK not behaving as expected.
Дата
Msg-id 3144564.1607369236@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deferrable FK not behaving as expected.  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: Deferrable FK not behaving as expected.
Re: Deferrable FK not behaving as expected.
Список pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> Neither technique worked.

> test=# ALTER TABLE sales_detail ALTER CONSTRAINT 
> fk_sales_detail_sales_header DEFERRABLE INITIALLY DEFERRED;
> ALTER TABLE

Hmm, reproduced here.  There seems to be some kind of bug
in ALTER CONSTRAINT --- it looks like it's updated all the
child FKs successfully, but it actually hasn't.  If you
drop the FK constraint altogether, and recreate it having
DEFERRABLE INITIALLY DEFERRED from the start, it should
work --- at least it does for me.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Joshua Drake
Дата:
Сообщение: Re: PL/java
Следующее
От: legrand legrand
Дата:
Сообщение: Re: simple reporting tools for postgres in aws