Re: [HACKERS] psql variables fixed (?) - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: [HACKERS] psql variables fixed (?)
Date
Msg-id 387FE4CB.BB2EE0C6@alumni.caltech.edu
Whole thread Raw
In response to psql variables fixed (?)  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [HACKERS] psql variables fixed (?)
Re: [HACKERS] psql variables fixed (?)
List pgsql-hackers
Peter Eisentraut wrote:
> 
> I resolved the issue psql variables vs array syntax in the manner
> suggested by various people. If the variable is undefined the string will
> be untouched. Now something else I'd like to get your comment on is that I
> handled the cast operator '::' in the same way, namely so that
> (Btw., was somebody mentioning that this cast syntax is non-standard and
> that he wanted to move toward a standard one? Just wondering.)

Yes, I probably mentioned that. But there is a problem in that the
SQL92 standard does not actually define the "type 'string'" syntax for
anything other than date/time types, since those are the only types
other than true strings defined in the standard. So I extended the
standard (in a natural way imho) to include any string-y input.

I'd be a little reluctant to give up the alternate "::" syntax, only
because I'm not sure I trust the standards folks to not stomp on the
alternative at some point in the future. (Sorry about the
double-negative, but it says what I mean :)
                  - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Re: Peter opens a can of worms
Next
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] Re: Informix and OUTER join syntax