From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Justin Pryzby <pryzby(at)telsasoft(dot)com> |
Cc: | Rajkumar Raghuwanshi <rajkumar(dot)raghuwanshi(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: cache lookup failed for constraint when alter table referred by partition table |
Date: | 2018-09-13 16:35:04 |
Message-ID: | 20180913163504.ecvozcnighb6cbxm@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
Attachment | Content-Type | Size |
---|---|---|
0001-fix-ALTER-TYPE.patch | text/plain | 5.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-09-13 16:47:08 | Re: cache lookup failed for constraint when alter table referred by partition table |
Previous Message | Jesper Pedersen | 2018-09-13 15:39:46 | Re: Index Skip Scan |