Re: proposal: searching in array function - array_position

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>
Cc: Petr Jelinek <petr(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: proposal: searching in array function - array_position
Date: 2015-03-12 06:54:49
Message-ID: CAFj8pRDgLRQYF_8Dz4i4g3TKbfPdNUmCcCin5thR+PgT+_hd6A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2015-03-11 22:50 GMT+01:00 Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>:

> On 3/11/15 4:37 PM, Pavel Stehule wrote:
> + /*
> + * array_offset - returns the offset of a value in an array
> (array_offset and
> + * array_offset_start are wrappers for safe call (look on opr_sanity
> test) a
> + * array_offset_common function.
> + *
> + * Returns NULL when value is not found. It uses a "NOT DISTINCT FROM"
> operator
> + * for comparation to be safe against NULL.
> + */
>
> would be better as...
>
> + /*
> + * array_offset - returns the offset of a value in an array.
> array_offset and
> + * array_offset_start are wrappers for the sake of the opr_sanity test.
> + *
> + * Returns NULL when value is not found. It uses a "NOT DISTINCT FROM"
> operator
> + * for comparation to be safe against NULL.
> + */

fixed

Regards

Pavel

>
> --
> Jim Nasby, Data Architect, Blue Treble Consulting
> Data in Trouble? Get it in Treble! http://BlueTreble.com
>

Attachment Content-Type Size
array_offset-06.patch text/x-patch 19.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Tachoires 2015-03-12 07:01:23 Re: patch : Allow toast tables to be moved to a different tablespace
Previous Message Amit Kapila 2015-03-12 06:49:41 Re: pg_rewind in contrib