diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-07 01:33:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-02-07 01:33:39 +0000 |
commit | 521d70f661bc892a4dbf79a9df490e3545e032ad (patch) | |
tree | fc69201a4df075586e34fa6b9877ad5bb32a37f5 /src/backend/executor/functions.c | |
parent | c228ef15874075bd70d326771ca651aced603770 (diff) |
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.
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions