Re: temp tables and pg_pconnect()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



--- Adam Lang <aalang@xxxxxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux