pgsql: Fix an oversight in the original implementation of

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix an oversight in the original implementation of
Date: 2008-07-11 16:08:50
Message-ID: 20080711160850.5D9C1754A84@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix an oversight in the original implementation of performMultipleDeletions():
the alreadyDeleted list has to be passed down through
deleteDependentObjects(), else objects that are deleted via auto/internal
dependencies don't get reported back up to performMultipleDeletions().
Depending on the visitation order, this could cause the code to try to delete
an already-deleted object, leading to strange errors in DROP OWNED (typically
"cache lookup failed for relation NNNNN" or similar). Per bug #4289.

Patch for back branches only. This code has recently been rewritten in HEAD,
and doesn't have this particular bug anymore.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/catalog:
dependency.c (r1.69 -> r1.69.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/dependency.c?r1=1.69&r2=1.69.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-07-11 16:08:57 pgsql: Fix an oversight in the original implementation of
Previous Message Simon Riggs 2008-07-11 15:31:19 Re: pgsql: Add: > > * Add temporal versions of generate_series() > >