Re: MULTISET and additional functions for ARRAY - Mailing list pgsql-hackers

From Tom Lane
Subject Re: MULTISET and additional functions for ARRAY
Date
Msg-id 9379.1289573075@sss.pgh.pa.us
Whole thread Raw
In response to Re: MULTISET and additional functions for ARRAY  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: MULTISET and additional functions for ARRAY
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Nov 12, 2010 at 12:21 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The problem is not with the type system: as long as you give multisets
>> different type OIDs from arrays, everything will work fine.

> And thus you must create a THIRD copy of every entry in pg_type.  That
> doesn't qualify as a problem?

[ shrug... ]  It's less of a problem than the possible alternatives.
IMO anyway.  OIDs are cheap ... replacing OIDs with some sort of
ill-specified composite key throughout the system is not.

But I'm still not convinced that this feature is useful enough to
justify the implementation effort.  AFAICS there's nothing here that
you couldn't get with some non-default operators on regular arrays,
with orders of magnitude less work and less impact on the rest of the
system.  The only reason to consider implementing it as a separate type
category is the SQL committee decided to invent some syntax --- and
given their lousy taste in syntax, I get less enthused every year about
duplicating it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: We need index-only scans
Next
From: Alvaro Herrera
Date:
Subject: Re: We need index-only scans