Re: Arrays of Complex Types

From: David Fetter <david(at)fetter(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: andrew(at)supernews(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Arrays of Complex Types
Date: 2007-03-28 18:48:57
Message-ID: 20070328184857.GB5437@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Wed, Mar 28, 2007 at 01:33:56PM -0400, Andrew Dunstan wrote:
> Alvaro Herrera wrote:
> >David Fetter wrote:
> >>The first is in type_sanity, which basically doesn't understand
> >>that complex types now have array types associated with them and
> >>thinks they're orphan array types, so it's actually the test
> >>that's not right.
> >
> >Hmm, I question the usefulness of automatically creating array
> >types for all relation types that are created -- the catalog bloat
> >seems a bit too much. An array of pg_autovacuum for example, does
> >that make sense?
> >
> >I'm not sure what was the reaction to having an "CREATE TYPE foo
> >ARRAY OF bar" command of some kind? I think this was discussed but
> >not explicitely rejected, or was it?
>
> It certainly seems rather inconsistent to have array types
> autocreated for some types but not others.

This was my thought in the latest version of the patch.

> But unless we create them for all types then I think we need a
> command such as you suggest.
>
> How much bloat will this really be? If it's not used it won't get
> into the type cache. I find it hard to believe there will be any
> very significant performance effect.

So do I, but how would we check this?

Cheers,
D
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!
Consider donating to PostgreSQL: http://www.postgresql.org/about/donate

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-03-28 18:48:58 Re: CREATE INDEX and HOT - revised design
Previous Message Florian G. Pflug 2007-03-28 18:43:12 Re: CREATE INDEX and HOT - revised design

Browse pgsql-patches by date

  From Date Subject
Next Message Jeremy Drake 2007-03-28 19:00:22 Re: patch adding new regexp functions
Previous Message Tom Lane 2007-03-28 17:35:54 Re: Arrays of Complex Types