Re: FK violation in partitioned table after truncating a referencedpartition

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: FK violation in partitioned table after truncating a referencedpartition
Дата
Msg-id 20200206220005.GA31399@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: FK violation in partitioned table after truncating a referencedpartition  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: FK violation in partitioned table after truncating a referencedpartition  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: FK violation in partitioned table after truncating a referencedpartition  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-bugs
Also, I think we should patch the documentation like this, because this
effect is not 100% obvious.  (For example, if the partition strategy is
identical in both referenced and referencing tables, you would wish that
only the equivalent partition is truncated.  However, I doubt this can
be really implemented.)

I do wonder how do other RDBMSs behave.

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



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #16247: Cast error on integer
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: FK violation in partitioned table after truncating a referencedpartition