Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails
Дата
Msg-id
20230807112504.gg3nswmtq5xkzy3o@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
[BUG] Fix DETACH with FK pointing to a partitioned table fails Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Junwang Zhao <zhjwpku@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Junwang Zhao <zhjwpku@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Tender Wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails tender wang <tndrwang@gmail.com>
Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails Alvaro Herrera <alvherre@alvh.no-ip.org>
On 2023-Aug-07, tender wang wrote:

> The foreign key still works even though partition was detached. Is this
> behavior expected?

Well, there's no reason for it not to, right?  For example, if you
detach a partition and then attach it again, you don't have to scan the
partition on attach, because you know the constraint has remained valid
all along.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"In fact, the basic problem with Perl 5's subroutines is that they're not
crufty enough, so the cruft leaks out into user-defined code instead, by
the Conservation of Cruft Principle."  (Larry Wall, Apocalypse 6)


В списке pgsql-hackers по дате отправления
От: tender wang
Дата:
От: Andy Fan
Дата:
FAQ