Temp tables are curious creatures.... - Mailing list pgsql-hackers

From Rod Taylor
Subject Temp tables are curious creatures....
Date
Msg-id 1020126745.38874.3.camel@knight.zort.ca
Whole thread Raw
Responses Re: Temp tables are curious creatures....  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Temp tables are curious creatures....  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Appears psql needs to know how to differentiate between it's own temp
tables and those of another connection.  On the plus side, this takes
care of a TODO item to add temp table listings to psql.

Connection 1:

template1=# create temp table junk(col1 int4);
CREATE
template1=# select * from junk;col1 
------
(0 rows)


Connection 2:
template1=# \d List of relationsName | Type  | Owner 
------+-------+-------junk | table | rbt
(1 row)

template1=# select * from junk;
ERROR:  Relation "junk" does not exist

template1=# create temp table junk (col4 text);
CREATE
 List of relationsName | Type  | Owner 
------+-------+-------junk | table | rbtjunk | table | rbt





pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Vacation in May
Next
From: Tom Lane
Date:
Subject: Re: Temp tables are curious creatures....