Re: Proposal: stand-alone composite types

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Thomas Lockhart <lockhart(at)fourpalms(dot)org>, Rod Taylor <rbt(at)zort(dot)ca>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: stand-alone composite types
Date: 2002-08-10 01:59:30
Message-ID: 200208100159.g7A1xUZ21166@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Joe Conway wrote:
> Thomas Lockhart wrote:
> >>That's what I was thinking. In cases where you want to use the type for
> >>several functions, use CREATE TYPE. If you only need the type for one
> >>function, let the function creation process manage it for you.
> >
> > It would be nice then to have some mechanism for converting the
> > "automatic type" to a named type which could be used elsewhere.
> > Otherwise one would need to garbage collect the separate stuff later,
> > which would probably go into the "not so convenient" category of
> > features...
>
> Well I think that could be handled with the new dependency tracking
> system. Same as the SERIAL/sequence analogy -- when you drop the
> function, the type would automatically and transparently also get dropped.

All this type extension stuff is complex. If we can make it easier for
people to get started with it, we should.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-10 02:17:44 Re: [COMMITTERS] pgsql-server/src backend/tcop/postgres.cbacke
Previous Message Bruce Momjian 2002-08-10 01:56:45 Re: Wanted: RelationIsVisible interface

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2002-08-10 03:46:13 Re: adding PGPASSWORDFILE to libpq
Previous Message Bruce Momjian 2002-08-10 01:37:50 Re: adding PGPASSWORDFILE to libpq