Re: Deferrable FK not behaving as expected.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deferrable FK not behaving as expected.
Дата
Msg-id 3159381.1607377202@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deferrable FK not behaving as expected.  (Ron <ronljohnsonjr@gmail.com>)
Ответы Re: Deferrable FK not behaving as expected.
Список pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> That works *sometimes*, but not when we *really* want it to work.

> test=# begin transaction;
> BEGIN
> test=# ALTER TABLE sales_header DETACH PARTITION sales_header_202001;
> ERROR:  removing partition "sales_header_202001" violates foreign key 
> constraint "sales_detail_cust_id_order_ts_fkey"

That I think you're gonna have to live with.  DETACH PARTITION isn't
something we can defer to end of transaction.

            regards, tom lane



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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Deferrable FK not behaving as expected.
Следующее
От: Martin Gainty
Дата:
Сообщение: Re: PL/java