Re: Support for array_remove and array_replace functions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Support for array_remove and array_replace functions
Date
Msg-id EB4DDD52-8FFE-4CE7-92AD-7826EFB4CC59@gmail.com
Whole thread Raw
In response to Re: Support for array_remove and array_replace functions  (Alex Hunsaker <badalex@gmail.com>)
List pgsql-hackers
On Jul 11, 2012, at 11:53 AM, Alex Hunsaker <badalex@gmail.com> wrote:
> On Wed, Jul 11, 2012 at 9:54 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Marco Nenciarini <marco.nenciarini@2ndquadrant.it> writes:
>>> Patch v3 attached.
>> 
>> I'm looking at this patch now.  The restriction of array_remove to
>> one-dimensional arrays seems a bit annoying.  I see the difficulty:
>> if the input is multi-dimensional then removing some elements could
>> lead to a non-rectangular array, which isn't supported.  However,
>> that could be dealt with by decreeing that the *result* is
>> one-dimensional and of the necessary length, regardless of the
>> dimensionality of the input.
> 
> Makes sense to me. +1

+1 from me, too.

...Robert


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Support for array_remove and array_replace functions
Next
From: Merlin Moncure
Date:
Subject: Re: Schema version management