Re: proposal: searching in array function - array_position - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: searching in array function - array_position
Date
Msg-id CAFj8pRD=QhC36bMDA3xqRpKR3U7Y4QhYyF_KJn6RwGz3nTuNOQ@mail.gmail.com
Whole thread Raw
In response to Re: proposal: searching in array function - array_position  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: proposal: searching in array function - array_position  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers


2015-03-22 11:30 GMT+01:00 Dean Rasheed <dean.a.rasheed@gmail.com>:
On 22 March 2015 at 06:11, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hi
>
> here is updated patch with array_position, array_positions implementation.
>
> It is based on committed code - so please, revert commit
> 13dbc7a824b3f905904cab51840d37f31a07a9ef and apply this patch
>

I checked this and the changes look good, except that you missed a
couple of places in src/include/utils/array.h that need updating.

In the public docs, you should s/position/subscript because that's the
term used throughout the docs for an index into an array. I still like
the name array_position() for the function though, because it's
consistent with the existing position() functions.

updated patch


 

Regards,
Dean

Attachment

pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: Using 128-bit integers for sum, avg and statistics aggregates
Next
From: Michael Paquier
Date:
Subject: Re: printing table in asciidoc with psql