X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 808E99DD20F for ; Fri, 13 Jan 2006 00:21:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03810-09 for ; Fri, 13 Jan 2006 00:21:33 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3DDD09DD20D for ; Fri, 13 Jan 2006 00:21:32 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k0D4LSr5021185; Thu, 12 Jan 2006 23:21:28 -0500 (EST) To: Michael Fuhr cc: John DeSoi , "'pgsql-sql@postgresql.org' SQL" Subject: Re: info is a reserved word? In-reply-to: <20060113012932.GA71559@winnie.fuhr.org> References: <304B868D-CE4E-4E43-8B85-4CA238BB0F94@pgedit.com> <20060113012932.GA71559@winnie.fuhr.org> Comments: In-reply-to Michael Fuhr message dated "Thu, 12 Jan 2006 18:29:32 -0700" Date: Thu, 12 Jan 2006 23:21:28 -0500 Message-ID: <21184.1137126088@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.087 required=5 tests=[AWL=0.087] X-Spam-Score: 0.087 X-Spam-Level: X-Archive-Number: 200601/57 X-Sequence-Number: 23846 Michael Fuhr writes: > 'info' only seems special in PL/pgSQL, presumably because it's one > of the possible RAISE levels. You should also get an error if you > try 'exception', 'warning', etc. plpgsql is not very good about reserving words "minimally", ie, not treating a word as a keyword outside the context where the keyword is meaningful. This could probably be fixed, or at least greatly reduced, with some flex/bison hacking. Anyone up for it? regards, tom lane