Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6A36E634709 for ; Tue, 14 Jul 2009 14:41:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 97598-02-3 for ; Tue, 14 Jul 2009 14:41:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id A32C66331EE for ; Tue, 14 Jul 2009 14:38:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n6EHcQ3l026126; Tue, 14 Jul 2009 13:38:26 -0400 (EDT) To: Scott Marlowe cc: emilu@encs.concordia.ca, pgsql-sql@postgresql.org Subject: Re: Request new version to support "on commit drop" for create temp table ... as select ? In-reply-to: References: <4A5C9F55.5050305@encs.concordia.ca> <25173.1247590050@sss.pgh.pa.us> Comments: In-reply-to Scott Marlowe message dated "Tue, 14 Jul 2009 11:33:21 -0600" Date: Tue, 14 Jul 2009 13:38:26 -0400 Message-ID: <26125.1247593106@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.079 tagged_above=0 required=5 tests=AWL=0.079 X-Spam-Level: X-Archive-Number: 200907/72 X-Sequence-Number: 32813 Scott Marlowe writes: > 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? Your syntax is wonky -- switch the clause order. http://www.postgresql.org/docs/8.3/static/sql-createtableas.html regards, tom lane