Re: Arrays of Complex Types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "David Fetter" <david(at)fetter(dot)org>, andrew(at)supernews(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Arrays of Complex Types
Date: 2007-03-28 19:24:26
Message-ID: 5667.1175109866@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> CREATE ARRAY TYPE FOR foo

> I also made a suggestion along the way that we never create array types
> automatically except for domains.

That seems awfully strange, not to mention very non-backwards-compatible
since it exactly reverses what happens now.

I'd be willing to consider it if a domain were a zero-cost addition to
the equation, but it is not --- every operation on a domain has to check
to see if there are constraints to enforce. You shouldn't have to buy
into that overhead to have an array.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-03-28 19:40:41 Re: Patch queue concern
Previous Message Gregory Stark 2007-03-28 19:15:20 Re: Arrays of Complex Types

Browse pgsql-patches by date

  From Date Subject
Next Message David Fetter 2007-03-28 19:41:07 Re: Arrays of Complex Types
Previous Message Gregory Stark 2007-03-28 19:15:20 Re: Arrays of Complex Types