Re: cache lookup failed for constraint when alter table referred by partition table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cache lookup failed for constraint when alter table referred by partition table
Дата
Msg-id 9521.1536857228@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: cache lookup failed for constraint when alter table referred bypartition table  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: cache lookup failed for constraint when alter table referred bypartition table  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> That's the problem all right.  The solution is to drop all
> index/constraint objects together in one performMultipleDeletions()
> instead of performDeletion() one by one, as in the attached patch.

Looks reasonable as far as it goes.  Given that we no longer require
any of this:

-     * Now we can drop the existing constraints and indexes --- constraints
-     * first, since some of them might depend on the indexes.  In fact, we
-     * have to delete FOREIGN KEY constraints before UNIQUE constraints, but
-     * we already ordered the constraint list to ensure that would happen.

can we make any simplifications in earlier steps?  At the very least,
look for comments related to this assumption.

            regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: cache lookup failed for constraint when alter table referred bypartition table
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: PostgreSQL 11 {Beta 4, RC1} Release: 2018-09-20