Re: Dollar in identifiers - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: Dollar in identifiers
Date
Msg-id 3E1DF3DC.DD6D1F65@Yahoo.com
Whole thread Raw
In response to Re: Dollar in identifiers  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Dollar in identifiers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> 
> Peter Eisentraut wrote:
> > Tom Lane writes:
> >
> > > 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.
> >
> > I agree with the first one, but does it have to imply the second?
> 
> I believe he wanted the second because Oracle supports it, and some
> Oracle apps use that feature.  I think in the old days, before
> underscore, Oracle used $ for space (double yuck).

Dollar is not allowed as per SQL spec. And I think Oracle discouraged
people from using it, but used it in their own stuff. Good way to avoid
any possible conflicts and I would've liked our version of it to be pg$
instead of pg_ ... I think that's a bit too much to ask for, is it?

The problem is, discouraged or not, if there's a slot people will stick
something into ... meaning if it accepts a dollar, to hell with vendor
recommendations!


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: Dollar in identifiers
Next
From: Tom Lane
Date:
Subject: Re: Dollar in identifiers