Search Postgresql Archives

Re: SELECT INTO TEMPORARY problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Goodenough <david.goodenough@xxxxxxxxxxxxx> writes:
> In one of the requests I do a SELECT ... INTO TEMPORARY t1 ..., which 
> works just fine when I first use it, but from then on it objects saying
> that t1 already exists.  When I read the documentation (8.1 as that is 
> what I am using) I thought I understood that the table would disappear 
> at the end of the transaction.

No, the default is to last until end of session.

There's an ON COMMIT DROP option in the CREATE TEMP TABLE syntax,
but I don't think it's possible to stick it into an INTO TEMP clause.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux