--- 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