Re: How to view temp tables

From: Kevin Kempter <kevin(at)kevinkempterllc(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to view temp tables
Date: 2008-02-21 13:51:01
Message-ID: 200802210651.02038.kevin@kevinkempterllc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 21 February 2008 00:17:56 Chris wrote:
> pc wrote:
> > My php code is creating temporary table named mytemp,but when I run a
> > selec * from mytemp I cannot see the table.How can I see the table
> > from postgresql command prompt?
>
> temp tables are automatically deleted when the connection is closed.
>
> make it a non-temp table :)

Temp tables are also limited in scope to the current session, so if your PHP
process created the temp table, then ONLY your PHP process can see the temp
table (and even then only until a dis-connect occurs)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message luca.ciciriello 2008-02-21 13:55:28 selective backup and restore
Previous Message Howard Wilkinson 2008-02-21 12:42:51 Re: Querying the schema for column widths - what syntax do I use?