Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Macros for typtype (was Re: Arrays of Complex Types)


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Peter Eisentraut <peter_e(at)gmx(dot)net>
  • Cc: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>, David Fetter <david(at)fetter(dot)org>
  • Subject: Re: Macros for typtype (was Re: Arrays of Complex Types)
  • Date: Sat, 31 Mar 2007 22:31:26 -0400
  • Message-id: <13829.1175394686@sss.pgh.pa.us> <text/plain>

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>>> 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?

> Why not enums? ;-)

Well, macros is how we do it elsewhere for "char" system columns.
I'm not sure we could rely on the behavior if we declared
pg_type.typtype as an enum type ... and if we don't, there's not
much point.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group