Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AD5BE1337B9C for ; Wed, 9 Mar 2011 10:38:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 29489-06 for ; Wed, 9 Mar 2011 14:38:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id A65251337B82 for ; Wed, 9 Mar 2011 10:38:01 -0400 (AST) Received: by wwc33 with SMTP id 33so670643wwc.19 for ; Wed, 09 Mar 2011 06:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IvgWt2MtjDrF13XH7/qTXtPpy/ljywXF7MUM0Rpf3UA=; b=NQpAUKbwm9XnvrW7fXgD3iJCF5fsT3n3RFTLFRevhD40LLaM3y0Oxb8ZsLfgVO15mT na4FofCwYWxCPd0OfgVCRut76CbClB+kw3Qc+vXjQKyn83b1jppa2DZdgYG3Xa6g0+it 69/WftZJFo/j+tj2biLJkMnMdjAK9GY+EmsWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AU/98ujJwWwX8uuR2/39IUOFnn93ulb9GFLu4sNKAoccIziYFIqS998qu4JhLRZUn6 IyVwKvn3aNl/CBo4NHo4nAGCpL/8bV4rIXMqf75sdzGV2XVmg/H1O10VF31wAP/SprqV K3Hyuh+PZ/uMFT8wbLW0YLKRuUyBfCuV2ofpI= MIME-Version: 1.0 Received: by 10.227.206.84 with SMTP id ft20mr5794086wbb.161.1299681481211; Wed, 09 Mar 2011 06:38:01 -0800 (PST) Received: by 10.227.153.132 with HTTP; Wed, 9 Mar 2011 06:38:01 -0800 (PST) In-Reply-To: <004a01cbde41$a01544a0$e03fcde0$@com> References: <004a01cbde41$a01544a0$e03fcde0$@com> Date: Wed, 9 Mar 2011 07:38:01 -0700 Message-ID: Subject: Re: Advise on dropping TEMP table/schema for my use case From: Scott Marlowe To: gnanam@zoniac.com Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.589 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201103/98 X-Sequence-Number: 36970 On Wed, Mar 9, 2011 at 3:06 AM, Gnanakumar wrote: > > So, now we've decided to either DROP TABLE pg_temp_xx.FOO or DROP SCHEMA > pg_temp_xx explicitly just before closing the connection (after step 3 an= d > before step 4), so that it'll not be visible for the next database > connection request. =A0My question is, which one of the option is recomme= nded > and why? Why can't you just do: DROP TABLE FOO; ???