Re: [GENERAL] SELECT INTO TEMPORARY problem

2007-01-18 Thread Jaime Casanova
On 1/17/07, Tom Lane <[EMAIL PROTECTED]> wrote: David Goodenough <[EMAIL PROTECTED]> 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 (

Re: [GENERAL] SELECT INTO TEMPORARY problem

2007-01-17 Thread A. Kretschmer
am Wed, dem 17.01.2007, um 16:04:10 + mailte David Goodenough folgendes: > I have a servlet which gets its data through a DataSource (Tomcat 5.5) > and starts each request as a new SQL transaction and either commits > the transaction or rolls it back at the end of each request. > > In one of

Re: [GENERAL] SELECT INTO TEMPORARY problem

2007-01-17 Thread Richard Huxton
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.

Re: [GENERAL] SELECT INTO TEMPORARY problem

2007-01-17 Thread Tom Lane
David Goodenough <[EMAIL PROTECTED]> 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 un

[GENERAL] SELECT INTO TEMPORARY problem

2007-01-17 Thread David Goodenough
I have a servlet which gets its data through a DataSource (Tomcat 5.5) and starts each request as a new SQL transaction and either commits the transaction or rolls it back at the end of each request. In one of the requests I do a SELECT ... INTO TEMPORARY t1 ..., which works just fine when I firs