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 20180910143637.3xscglivuau6mpz5@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 bypartition table  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 2018-Sep-10, Alvaro Herrera wrote:

> On 2018-Sep-10, Justin Pryzby wrote:
> 
> > Adding Alvaro 
> > 
> > On Fri, Sep 07, 2018 at 04:02:13PM +0530, Rajkumar Raghuwanshi wrote:
> > > postgres=# CREATE TABLE non_part (a INT,PRIMARY KEY(a));
> > > postgres=# CREATE TABLE part (a INT REFERENCES non_part(a)) PARTITION BY RANGE(a);
> > > postgres=# CREATE TABLE part_p1 PARTITION OF part FOR VALUES FROM (MINVALUE) TO (MAXVALUE);
> > > postgres=# ALTER TABLE non_part ALTER COLUMN a TYPE bigint;
> > > *ERROR:  cache lookup failed for constraint 16398*

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.  Not sure what the fix is
yet, but I'll look into it later today.

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


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

Предыдущее
От: Jerry Jelinek
Дата:
Сообщение: Re: patch to allow disable of WAL recycling
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Loaded footgun open_datasync on Windows