Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 27AEC475FEB for ; Thu, 9 Jan 2003 12:00:27 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 74A9B475FC6 for ; Thu, 9 Jan 2003 12:00:26 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 741CCD60B; Thu, 9 Jan 2003 09:00:31 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 69D675C03; Thu, 9 Jan 2003 09:00:31 -0800 (PST) Date: Thu, 9 Jan 2003 09:00:31 -0800 (PST) From: Stephan Szabo To: Tom Lane Cc: Achilleus Mantzios , Radu-Adrian Popescu , Subject: Re: SQL function parse error ? In-Reply-To: <777.1042127826@sss.pgh.pa.us> Message-ID: <20030109085635.I92199-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/133 X-Sequence-Number: 10998 On Thu, 9 Jan 2003, Tom Lane wrote: > Achilleus Mantzios writes: > > On Thu, 9 Jan 2003, Radu-Adrian Popescu wrote: > >> Why is that ? Because the >$ does not exist, not in the default operator > >> list > > > i think the parser is built with yacc, (not "from scratch code") so > > maybe finding if ">$" is in the specific DB's operators > > would require code that whould slower the whole parsing > > process (imagine what it means for performance). > Because of these issues, the question of whether ">$" actually is > defined as an operator in a particular installation is irrelevant to > how we split character strings into tokens. The only way we have to > adjust this behavior is by changing the rules about what an operator > name could be, for everyone. Although the rules could be similar to those for + and - at the end of operator strings (no $ at the end of an operator unless it contains characters not normally in SQL92 operators). I'm not sure that behavior is sensible either, but if someone wanted to do it for their own installation it's about a 2 line patch.