From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PG Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Macros for typtype (was Re: Arrays of Complex Types) |
Date: | 2007-03-31 23:36:21 |
Message-ID: | 20070331233621.GA15577@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On Sat, Mar 31, 2007 at 07:13:20PM -0400, Bruce Momjian wrote:
> Tom Lane wrote:
> > I wrote:
> > > David Fetter <david(at)fetter(dot)org> writes:
> > >> What parts of the code would need a once-over?
> >
> > > A lot :-( ... probably every place that touches typtype or typelem would
> > > need at least a look. It'd be a good idea to take the opportunity to
> > > start using macros for the values of typtype, as we do for relkind but
> > > for some reason never adopted for typtype.
> >
> > I just realized that I need to check every usage of typtype to be sure
> > that the enums patch is sane. So, barring objection, I intend to take
> > this opportunity to make the code stop referring directly to 'b', 'c'
> > etc whereever possible. Any objections to these names?
> >
> > #define TYPTYPE_BASE 'b'
> > #define TYPTYPE_COMPOSITE 'c'
> > #define TYPTYPE_DOMAIN 'd'
> > #define TYPTYPE_ENUM 'e'
> > #define TYPTYPE_PSEUDO 'p'
>
> I like macros. ;-)
Macros are great. :)
What say we put one in pre-emptively for TYPTYPE_ARRAY?
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-03-31 23:58:34 | Re: Macros for typtype (was Re: Arrays of Complex Types) |
Previous Message | korryd | 2007-03-31 23:30:03 | Re: Last minute mini-proposal (I know, Iknow)forPQexecf() |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-03-31 23:58:34 | Re: Macros for typtype (was Re: Arrays of Complex Types) |
Previous Message | Tom Dunstan | 2007-03-31 23:26:09 | Re: Current enums patch |