| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Jan Wieck <JanWieck(at)yahoo(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL HACKERS <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Dollar in identifiers |
| Date: | 2003-01-09 18:14:37 |
| Message-ID: | 200301091814.h09IEb328154@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I agree. I think $ is too special to be mixed in with operators. It is
just used too frequently for variables.
---------------------------------------------------------------------------
Tom Lane wrote:
> Quite awhile back, we had a discussion about removing "$" from the set
> of allowed characters in operator names, and instead allowing it as a
> non-first character in identifiers. (It'd have to be non-first to avoid
> ambiguity with parameter symbols "$nnn".) See, eg,
> http://archives.postgresql.org/pgsql-hackers/2001-08/msg00629.php
>
> That discussion petered out without any definite consensus being
> reached, but I think it's time to reconsider the idea. We're getting
> flak about "x<$n" being parsed as "x <$ n" rather than "x < $n" (see
> current thread in pgsql-sql). While this has always been a hazard for
> SQL and plpgsql function writers, it is now also a hazard in direct
> SQL, if you use PREPAREd queries. So I think the importance of avoiding
> such problems has moved up a notch as of 7.3.
>
> So, I'd like to put that proposal back on the table. Comments anyone?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas O'Connell | 2003-01-09 19:09:47 | Re: Question about DEADLOCK |
| Previous Message | Randal L. Schwartz | 2003-01-09 17:36:10 | Open Source Development Lab resources |