Re: array_except -- Find elements that are not common to both arrays

From: bricklen <bricklen(at)gmail(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Ben Chobot <bench(at)silentmedia(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: array_except -- Find elements that are not common to both arrays
Date: 2011-09-30 23:43:56
Message-ID: CAGrpgQ8b-pX3pLVU6JphLxOnB7+LUiB_1RpZPsC3xVDf-26WmA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Sep 30, 2011 at 2:12 PM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
>> FWIW, speaking as somebody who has no need of this function, "array_xor" is a pretty clear name that indicates what's going to happen.
>
> +1 on this -- was going to suggest until you beat me to it.  I also
> for the record really think the array_ prefix on array handling
> functions is pretty silly since we support overloading -- greatly
> prefer unnest() to array_unnest() etc.  So, how about xor()?

Makes sense, in light of your comment about overloading.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message David Boreham 2011-10-02 02:39:27 Suggestions for Intel 710 SSD test
Previous Message Bobby Dewitt 2011-09-30 21:29:06 Re: PostgreSQL-9.0 Monitoring System to improve performance