Re: SELECT INTO TEMPORARY problem - Mailing list pgsql-general

From Richard Huxton
Subject Re: SELECT INTO TEMPORARY problem
Date
Msg-id 45AE530B.5030602@archonet.com
Whole thread Raw
In response to SELECT INTO TEMPORARY problem  (David Goodenough <david.goodenough@btconnect.com>)
List pgsql-general
David Goodenough wrote:
> I thought I understood that the table would disappear
> at the end of the transaction.  Other than deleting it, is there something
> else I need to do or have I missunderstood that into temporary does?

Dropped when the connection is closed normally, but see the ON COMMIT.

http://www.postgresql.org/docs/8.1/static/sql-createtable.html

You might have to do CREATE TABLE then INSERT INTO ... SELECT though.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: SELECT INTO TEMPORARY problem
Next
From: Tom Lane
Date:
Subject: Re: Index bloat of 4x