From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: George Dau <gedau@isa.mim.com.au>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>
Subject: Re: [SQL] prob with aggregate and group by - returns multiples
Date: Tue, 29 Feb 2000 00:19:05 +0100 (CET)
Message-ID: <Pine.LNX.4.21.0002282202540.3511-100000@localhost.localdomain> (raw)
In-Reply-To: <21290.951724201@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: peter_e@gmx.net, tgl@sss.pgh.pa.us, gedau@isa.mim.com.au, pgsql-hackers@postgresql.org
Subject: Re: [SQL] prob with aggregate and group by - returns multiples
In-Reply-To: <Pine.LNX.4.21.0002282202540.3511-100000@localhost.localdomain>
References: <21290.951724201@sss.pgh.pa.us> <Pine.LNX.4.21.0002282202540.3511-100000@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox