Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7CAB563512F for ; Tue, 14 Jul 2009 14:38:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 62090-04-6 for ; Tue, 14 Jul 2009 14:38:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f223.google.com (mail-ew0-f223.google.com [209.85.219.223]) by mail.postgresql.org (Postfix) with ESMTP id C14A4636C48 for ; Tue, 14 Jul 2009 14:33:22 -0300 (ADT) Received: by ewy23 with SMTP id 23so3298785ewy.19 for ; Tue, 14 Jul 2009 10:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=od3I5/u0q6+CYk5BW7vqXHdOimNJ/IRZhrwM5gFTkVA=; b=ccJ+qIzdSUZwuh82Ll9I9QS2Bhuw9hd6HxXd0JQeEpgQUPt8Phrc9bHuAS/8SLO23X JbuemqHoZs9hlLeb9ihK33gX19UmFSdXtWb7oIgO0zRpL5FxNsrNhulPVmkQ/VrpSYV/ ncw/zD3ILUgoxe66DiTZBsZmAnRto85z5rkTk= 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=P3H/xiTHDT1f+BSprnxgE8GUMiCrthDk7dtMLzmjrbWbFD9tk/SYc8gPEXiszrpxV4 jLbrwVU2p9bvKluf6Xvg7HGLNX0z3DFAaiMU92y/QcLDGxuBx5wulJbRX4SWuUSXTiZ2 VmSOQ+t2aVUSpxC8TJGBH5RIyEvXKVbN0pjYY= MIME-Version: 1.0 Received: by 10.210.69.13 with SMTP id r13mr6897637eba.66.1247592801407; Tue, 14 Jul 2009 10:33:21 -0700 (PDT) In-Reply-To: <25173.1247590050@sss.pgh.pa.us> References: <4A5C9F55.5050305@encs.concordia.ca> <25173.1247590050@sss.pgh.pa.us> Date: Tue, 14 Jul 2009 11:33:21 -0600 Message-ID: Subject: Re: Request new version to support "on commit drop" for create temp table ... as select ? From: Scott Marlowe To: Tom Lane Cc: emilu@encs.concordia.ca, pgsql-sql@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=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/71 X-Sequence-Number: 32812 On Tue, Jul 14, 2009 at 10:47 AM, Tom Lane wrote: > Emi Lu writes: >> I googled to find that "on commit drop" does not support: > >> (a) create temp table as select * from table1 where 1<>2; >> http://archives.postgresql.org/pgsql-sql/2005-09/msg00153.php > > Ah, the pitfalls of believing that the first google hit you get > is authoritative. =A0Didn't you notice that message was from 2005? That's what I thought, but create temp table xyz as select * from abc on commit drop; still fails on 8.3. Was this fixed in 8.4 or is my syntax wonky?