From: | "Brent R(dot) Matzelle" <bmatzelle(at)yahoo(dot)com> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: temp tables and pg_pconnect() |
Date: | 2001-10-13 19:29:05 |
Message-ID: | 20011013192905.23166.qmail@web13006.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
--- Adam Lang <aalang(at)rutgersinsurance(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Adam Lang | 2001-10-13 21:04:15 | Re: temp tables and pg_pconnect() |
Previous Message | Papp Gyozo | 2001-10-13 19:04:00 | Re: temp tables and pg_pconnect() |