Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is temporary table created?

Tags:

postgresql

Where can I find created temporary table in posgresql folders? If I do select * from temp_table; then I got result, but cannot see it structure of my database in the PgAdmin?

like image 551
Z77 Avatar asked Jun 14 '10 12:06

Z77


1 Answers

Temporary tables get put into a schema called "pg_temp_NNN", where "NNN" indicates which server backend you're connected to. This is implicitly added to your search path in the session that creates them.

Note that you can't access one connection's temp tables via another connection... so depending on how exactly pgAdmin organises its connections, even being able to find the tables in the object explorer might not be useful.

like image 152
araqnid Avatar answered Nov 09 '22 14:11

araqnid