pgsql-server/src backend/catalog/dependency.c ...

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/catalog/dependency.c ...
Date: 2003-02-07 01:33:06
Message-ID: 20030207013306.7EC33476180@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)postgresql(dot)org 03/02/06 20:33:06

Modified files:
src/backend/catalog: dependency.c namespace.c
src/include/catalog: dependency.h

Log message:
Revise mechanism for getting rid of temp tables at backend shutdown.
Instead of grovelling through pg_class to find them, make use of the
handy dandy dependency mechanism: just delete everything that depends
on our temp schema. Unlike the pg_class scan, the dependency mechanism
is smart enough to delete things in an order that doesn't fall foul of
any dependency restrictions. Fixes problem reported by David Heggie:
a temp table with a serial column may cause a backend FATAL exit at
shutdown time, if it chances to try to delete the temp sequence first.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2003-02-07 01:33:39 pgsql-server/src backend/catalog/Tag: backend/ ...
Previous Message Tom Lane 2003-02-07 00:02:43 pgsql-server/src/backend/optimizer/plan Tag: R ...