Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 12A31475D64 for ; Thu, 9 Jan 2003 09:48:14 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 4FE8F475D20 for ; Thu, 9 Jan 2003 09:48:13 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h09EmE0U029441; Thu, 9 Jan 2003 09:48:14 -0500 (EST) To: "Radu-Adrian Popescu" Cc: pgsql-sql@postgresql.org Subject: Re: SQL function parse error ? In-reply-to: <00a501c2b7dc$a5c626b0$0600a8c0@rpopescu> References: <008f01c2b7d0$3733fdf0$0600a8c0@rpopescu> <3E1D6362.80701@klaster.net> <00a501c2b7dc$a5c626b0$0600a8c0@rpopescu> Comments: In-reply-to "Radu-Adrian Popescu" message dated "Thu, 09 Jan 2003 14:43:02 +0200" Date: Thu, 09 Jan 2003 09:48:14 -0500 Message-ID: <29440.1042123694@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/125 X-Sequence-Number: 10990 "Radu-Adrian Popescu" writes: > This is SQL, and people who are using PostgreSql write SQL, not > whitespace-sensitive SQL, bash or whatever. Nonsense. SQL syntax is space-sensitive. Or have you successfully written SELECTXFROMY; lately? There has occasionally been talk of disallowing '$' as a valid character in operator names, which would eliminate the syntactic ambiguity in this example. But undoubtedly it would also break a few applications that use '$' in user-defined operator names, so the proposal hasn't passed to date. > Is there any operator named >$ ? Whether there is one in the standard distribution is quite irrelevant. It's a valid operator name according to the current rules, and so open to definition by anyone who wants to. The most recent discussion I can find about this is the pgsql-hackers thread "Dollar in identifiers" from Aug 2001, eg http://archives.postgresql.org/pgsql-hackers/2001-08/msg00629.php There didn't seem to be a consensus to change things, so the old behavior stands, for the moment. regards, tom lane