Received: from merganser.its.uu.se (merganser.its.uu.se [130.238.6.236]) by hub.org (8.9.3/8.9.3) with ESMTP id SAA78818; Mon, 28 Feb 2000 18:16:51 -0500 (EST) (envelope-from peter@localhost.its.uu.se) Received: from regulus.its.uu.se ([130.238.7.19]:61415 "EHLO regulus.its.uu.se") by merganser.its.uu.se with ESMTP id ; Tue, 29 Feb 2000 00:16:08 +0100 Received: from peter (helo=localhost) by regulus.its.uu.se with local-esmtp (Exim 3.02 #2) id 12PZRR-0001EZ-00; Tue, 29 Feb 2000 00:19:05 +0100 Date: Tue, 29 Feb 2000 00:19:05 +0100 (CET) From: Peter Eisentraut To: Tom Lane cc: George Dau , "'pgsql-sql@postgresql.org'" , PostgreSQL Development Subject: Re: [SQL] prob with aggregate and group by - returns multiples In-Reply-To: <21290.951724201@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: Peter Eisentraut Tom Lane writes: > > On a lesser note: I tried "select * into temp from hits" as per the doco, > > but it barfs. > > Postgres thinks that TEMP is a keyword, so it won't take it as a table > name unless you put quotes around it. This is really an unfortunate case where someone should have read the SQL standard before putting in a feature. The SQL keyword is TEMPORARY, and TEMP is really a popular name for a dummy table. I tried making TEMP a ColId but it croaks on this syntactic contruct: SELECT xxx INTO [TEMP] [TABLE] tablename which is incidentally not SQL either. If someone is interested in allowing 'temp' as an identifier, there doesn't seem to be a good way without requiring the TABLE keyword above. Would that be worth it for 7.0 maybe? Of course the documentation should be changed to TEMPORARY as well in various places. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden