Received: from web13006.mail.yahoo.com (web13006.mail.yahoo.com [216.136.174.16]) by postgresql.org (8.11.3/8.11.4) with SMTP id f9DJT7r52830 for ; Sat, 13 Oct 2001 15:29:07 -0400 (EDT) (envelope-from bmatzelle@yahoo.com) Message-ID: <20011013192905.23166.qmail@web13006.mail.yahoo.com> Received: from [24.180.147.185] by web13006.mail.yahoo.com via HTTP; Sat, 13 Oct 2001 12:29:05 PDT Date: Sat, 13 Oct 2001 12:29:05 -0700 (PDT) From: "Brent R. Matzelle" Subject: Re: temp tables and pg_pconnect() To: pgsql-php@postgresql.org In-Reply-To: <001201c15414$17c12ea0$330a0a0a@rutgersinsurance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200110/53 X-Sequence-Number: 606 --- Adam Lang 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