Received: from me.tm.ee (adsl895.estpak.ee [213.168.23.133]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBG8Aw657927 for ; Sat, 16 Dec 2000 03:10:58 -0500 (EST) (envelope-from hannu@tm.ee) Received: from tm.ee (IDENT:hannu@localhost.localdomain [127.0.0.1]) by me.tm.ee (8.9.3/8.9.3) with ESMTP id KAA00904; Sat, 16 Dec 2000 10:08:48 +0200 Message-ID: <3A3B2310.EB5C3DEE@tm.ee> Date: Sat, 16 Dec 2000 10:08:48 +0200 From: Hannu Krosing X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: Peter Eisentraut CC: pgsql-docs@postgresql.org Subject: Re: SQL keywords References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/38 X-Sequence-Number: 85 Peter Eisentraut wrote: > > The section on SQL keywords in the User's Guide needs some updating. > > I figured that I could generate these various lists of reserved and > non-reserved keywords automatically --- and indeed I can! > > But now I've got 36 lists of keywords (all the set differences between > SQL92 reserved/non-reserved, SQL99 reserved/non-reserved, PG > reserved/non-reserved (which is a simplification)) -- none of which are > empty (some keywords where dropped from reserved to non-reserved between > SQL92 and 99) -- but that's more than anyone wants to know. > > But does anyone know what they do want to know? > > The list of PostgreSQL reserved words seems to be the only thing I can see > as definitely essential. But which is more important: The list of words > that are reserved in PG but *not* reserved in SQLxx (i.e., what problems > can I expect when porting stuff to PG), or the opposite (i.e., what words > should I avoid when writing portable SQL). It could be a good thing to have a table of the form Keyword | PostgreSQL | SQL 92 | SQL 99 | -----------+--------------+-------------+-------------+ SELECT | Reserved | Reserved | Reserved | WITH | - | - | Reserved | IN | Yes | - | Reserved | ... ----------- Hannu