Re: cache lookup failed for constraint when alter table referred bypartition table

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: cache lookup failed for constraint when alter table referred bypartition table
Дата
Msg-id 20180913163504.ecvozcnighb6cbxm@alvherre.pgsql
обсуждение исходный текст
Ответ на 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 by partition table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2018-Sep-10, Alvaro Herrera wrote:

> ATPostAlterTypeCleanup is trying to search the original constraint by
> OID in order to drop it, but it's not there -- I suppose it has already
> been dropped by recursion in a previous step.

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.

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

Вложения

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

Предыдущее
От: Jesper Pedersen
Дата:
Сообщение: Re: Index Skip Scan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: cache lookup failed for constraint when alter table referred by partition table