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  (Pavel Stehule <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Remove fsync ON/OFF as a visible option?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: assessing parallel-safety