Re: proposal: searching in array function - array_position

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: searching in array function - array_position
Дата
Msg-id 14396.1426873661@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: proposal: searching in array function - array_position  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: proposal: searching in array function - array_position
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Pavel Stehule wrote:
>> I am thinking, so it is ok - it returns a offset, not position.

> So you can't use it as a subscript?  That sounds unfriendly.  Almost
> every function using this will be subtly broken.

I concur; perhaps "offset" was the design intention, but it's wrong.
The result should be a subscript.
        regards, tom lane



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