Re: temp tables and pg_pconnect() - Mailing list pgsql-php

From Brent R. Matzelle
Subject Re: temp tables and pg_pconnect()
Date
Msg-id 20011013192905.23166.qmail@web13006.mail.yahoo.com
Whole thread Raw
In response to Re: temp tables and pg_pconnect()  ("Adam Lang" <aalang@rutgersinsurance.com>)
List pgsql-php
--- Adam Lang <aalang@rutgersinsurance.com> wrote:
> Are temp tables supposed to be destroyed when the connection
> is cosed?  If
> so, then the reason is because with pconnect, the connection
> really is never
> killed as far as Postgresql sees it.  The connection remains
> open.

pg_pconnect does keep the existing connection to PostgresSQL so
the temporary table would not be dropped.

> Can you drop the temp table yourself through the pg_exec
> comand and just use
> DROP TABLE ?

That would be a reasonable approach.  Or, if you do not need to
drop the table it would be might be more efficient to perform a
TRUNCATE rather than the DROP and CREATE combo.  That would
depend upon your system.

Brent

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

pgsql-php by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: temp tables and pg_pconnect()
Next
From: "Papp Gyozo"
Date:
Subject: Re: temp tables and pg_pconnect()