Re: factorial function/phase out postfix operators?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: factorial function/phase out postfix operators?
Дата
Msg-id CA+TgmobRfRoDfYdRArBNiKWYu9MeTTf--Z-67T77x53+WPd20w@mail.gmail.com
обсуждение исходный текст
Ответ на factorial function/phase out postfix operators?  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: factorial function/phase out postfix operators?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: factorial function/phase out postfix operators?  (Kenneth Marshall <ktm@rice.edu>)
Re: factorial function/phase out postfix operators?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, May 18, 2020 at 10:42 AM Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:
> What are the thoughts about then marking the postfix operator deprecated
> and eventually removing it?

I wrote a little bit about this last year:

http://postgr.es/m/CA+TgmoarLfSQcLCh7jx0737SZ28qwbuy+rUWT6rSHAO=B-6xdw@mail.gmail.com

I think it's generally a good idea, though perhaps we should consider
continuing to allow '!' as a postfix operator and just removing
support for any other. That would probably allow us to have a very
short deprecation period, since real-world use of user-defined postfix
operators seems to be nil -- and it would also make this into a change
that only affects the lexer and parser, which might make it simpler.

I won't lose a lot of sleep if we decide to rip out '!' as well, but I
don't think that continuing to support it would cost us much.

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



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: PATCH: logical_work_mem and logical streaming of largein-progress transactions
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: PATCH: logical_work_mem and logical streaming of largein-progress transactions