pgsql-server/src backend/catalog/dependency.c ... - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql-server/src backend/catalog/dependency.c ...
Date
Msg-id 20030207013306.7EC33476180@postgresql.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@postgresql.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.


pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/src/backend/optimizer/plan Tag: R ...
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql-server/src backend/catalog/Tag: backend/ ...