Re: functional call named notation clashes with SQL feature

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: functional call named notation clashes with SQL feature
Дата
Msg-id AANLkTik9AVOzx1qkwraiWBUN2HYKdBk4aLaZoCJKrB4s@mail.gmail.com
обсуждение исходный текст
Ответ на Re: functional call named notation clashes with SQL feature  (Florian Pflug <fgp@phlo.org>)
Ответы Re: functional call named notation clashes with SQL feature  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
On Mon, May 31, 2010 at 9:24 PM, Florian Pflug <fgp@phlo.org> wrote:
> On Jun 1, 2010, at 0:23 , Tom Lane wrote:
>> "David E. Wheeler" <david@kineticode.com> writes:
>>> On May 31, 2010, at 8:56 AM, Andrew Dunstan wrote:
>>>> I don't have strong feelings about the timing - I'd be very surprised if := were to be used in this context for
anyother purpose, so I don't think we'd be biting ourselves too much by just using that now. But if we do that, we
shoulddeprecate use of => as an operator now, and definitely remove its use in hstore either now or in 9.1. 
>>
>> My feeling is that (a) there is no hurry to do anything about an
>> unreleased draft of the standard, and (b) perhaps Peter could lobby
>> the committee to change the standard before it does get published.
>>
>> hstore's use of => is pretty well embedded already; waiting another
>> release or two before breaking things is not going to make it
>> significantly more painful.
>
>
> There might be some value in providing an alternative operator though, even if there is no definitive plan to
deprecate'=>'. 
>
> hstore gained quite a few new features in 9.0 that might attract new users. If there is even a slight chance that
'=>'will be deprecated during the next few releases, it'd be nice to save these users the hassle of migration... 
>
> For text => text and text[] => text[] I'd propose '||>' as an alternative, since they both combine their arguments,
kindof a like a concatenation. 
> For hstore => text[] I'd suggest '&>' since the result's set of keys is the intersection of both argument's key-sets.

I was going to propose ==> across the board.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Florian Pflug
Дата:
Сообщение: Re: functional call named notation clashes with SQL feature
Следующее
От: Takahiro Itagaki
Дата:
Сообщение: Re: [BUGS] BUG #5487: dblink failed with 63 bytes connection names