Thread: How to view temp tables

How to view temp tables

From
pc
Date:
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?

Re: How to view temp tables

From
Chris
Date:
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 :)

--
Postgresql & php tutorials
http://www.designmagick.com/

Re: How to view temp tables

From
"Scott Marlowe"
Date:
On Wed, Feb 20, 2008 at 7:30 PM, pc <chavanpriya@gmail.com> 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?

Got a code sample that shows this problem?  I.e. create table
statement, php script that tries to hit it.  Error codes are nice too.

Re: How to view temp tables

From
Kevin Kempter
Date:
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)