Re: [HACKERS] Exporting type OID macros in a cleaner fashion

2006-06-24 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > The alternative I'm currently thinking about is to build and install an > auto-generated file comparable to fmgroids.h, containing *only* the type > OID macro #defines extracted from pg_type.h. This would require just a > trivial amount of sed hac

Re: [HACKERS] Exporting type OID macros in a cleaner fashion

2006-06-17 Thread Martijn van Oosterhout
On Fri, Jun 16, 2006 at 10:58:05PM -0400, Tom Lane wrote: > The alternative I'm currently thinking about is to build and install an > auto-generated file comparable to fmgroids.h, containing *only* the type > OID macro #defines extracted from pg_type.h. This would require just a > trivial amount o

[HACKERS] Exporting type OID macros in a cleaner fashion

2006-06-16 Thread Tom Lane
This thread: http://archives.postgresql.org/pgsql-ports/2006-06/msg5.php points up that if a client program would like to refer to datatype OIDs by means of the pg_type.h macros (ie, write "INT4OID" and not "23"), it's currently forced to include postgres.h, which is not a good idea for a numbe