List Info

Thread: Dropping temporary tables from Postgres 7.1




Dropping temporary tables from Postgres 7.1
user name
2006-04-15 23:32:02
On Sat, Apr 15, 2006 at 06:39:22PM -0400, Dave Siktberg
wrote:
> I use temporary tables in Postgres 7.1 (via
"select foo into temporary table
> bar").  These are needed for a short time only. 
I expected they would
> periodically be deleted.  In looking at my vacuum
results, it appears they
> are persisting forever.  I can't locate any
instructions on how to remove
> them.  Is there anything short of individual drop table
commands or a dump /
> reload that will remove these from the database?

The following quotes are partly from postgres 8.x doc, but
it works also
with 7.4.5 (don't know about 7.1):

Temp Tables are deleted at the end of the database session
automatically.
Maybe you have never closed these sessions.

You also can control, what happens to temp tables at the end
of a transaction
(see http://www.postgresql.org/docs/8.1/interactiv
e/sql-createtable.html).

temp tables live in a separate namespace (schema):
From bsn.com
Basis Systeme netzwerk (BSn)                        phone :
+49 89 692 8120
Brecherspitzstr. 8 Rgb.                             fax   :
+49 89 692 8150
81541 Muenchen, Germany                             mobile:
0179 2133436


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
<listservlistserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email
message. You can leave the Subject: field of your email
blank.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )