Thread: Re: Possible Bug regarding temp tables (sql or psql?)

Re: Possible Bug regarding temp tables (sql or psql?)

From
Mark Frazer
Date:
Forgot to mention that adding
DROP TABLE v_idx ;
before the END WORK will fix things.  However, I was under the impression that
temporary tables would go away after a transaction in which they were created
was committed.





Re: [SQL] Possible Bug regarding temp tables (sql or psql?)

From
Mark Frazer
Date:
Any idea why the table can't be seen with \d in psql then?

Christopher Kings-Lynne <chriskl@familyhealth.com.au> [02/07/04 00:21]:
> 
> No - they go away at the end of a _connection_.  However, there is now a
> patch floating around on -hackers that would add an ' ON COMMIT DROP;'
> option to CREATE TEMP TABLE.

-- 
In the event of an emergency, my ass can be used as a flotation
device. - Bender




Re: [SQL] Possible Bug regarding temp tables (sql or psql?)

From
Bruce Momjian
Date:
Mark Frazer wrote:
> Any idea why the table can't be seen with \d in psql then?

It is a known problem with temp tables.  They aren't visible with \d
because they are invisible system tables that are removed on exit.  I
think 7.3 will fix this.

> 
> Christopher Kings-Lynne <chriskl@familyhealth.com.au> [02/07/04 00:21]:
> > 
> > No - they go away at the end of a _connection_.  However, there is now a
> > patch floating around on -hackers that would add an ' ON COMMIT DROP;'
> > option to CREATE TEMP TABLE.
> 
> -- 
> In the event of an emergency, my ass can be used as a flotation
> device. - Bender
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
> 
> 
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026