Re: SELECT INTO TEMPORARY problem

From: Richard Huxton <dev(at)archonet(dot)com>
To: David Goodenough <david(dot)goodenough(at)btconnect(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT INTO TEMPORARY problem
Date: 2007-01-17 16:47:07
Message-ID: 45AE530B.5030602@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2007-01-17 16:48:15 Re: Index bloat of 4x
Previous Message Greg Sabino Mullane 2007-01-17 16:42:20 Re: Index bloat of 4x