From: Brent R. Matzelle <bmatzelle@yahoo.com>
To: pgsql-php@postgresql.org
Subject: Re: temp tables and pg_pconnect()
Date: Sat, 13 Oct 2001 12:29:05 -0700 (PDT)
Message-ID: <20011013192905.23166.qmail@web13006.mail.yahoo.com> (raw)
In-Reply-To: <001201c15414$17c12ea0$330a0a0a@rutgersinsurance.com>
--- 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: bmatzelle@yahoo.com
Subject: Re: temp tables and pg_pconnect()
In-Reply-To: <20011013192905.23166.qmail@web13006.mail.yahoo.com>
References: <001201c15414$17c12ea0$330a0a0a@rutgersinsurance.com> <20011013192905.23166.qmail@web13006.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox