Re: [HACKERS] INT2OID, etc. - Mailing list pgsql-hackers

From darcy@druid.net (D'Arcy J.M. Cain)
Subject Re: [HACKERS] INT2OID, etc.
Date
Msg-id m0y8PJB-00000oC@druid.net
Whole thread Raw
In response to Re: [HACKERS] INT2OID, etc.  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Thus spake Bruce Momjian
> I will say that pg_dump does use it, but it is not really a 3rd party
> library.

Maybe everything in src/interfaces should be considered the same way.

> I recommend you use the file, and make them supply the pgsql source
> directory as part of the compile, that way, you can access the files you
> need directly.  You can do a lookup in pg_type for the names of the
> types you want.  Maybe you can even write a little psql script to
> extract the oid's you need from pg_type, convert the output to #defines,
> and #include that in your compile.

That's a thought.  I just pulled the defines I needed out with many
comments about what a bad boy I was for doing that.  I'll look at
something like that.

--
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.

pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [HACKERS] common area
Next
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Re: [HACKERS] INT2OID, etc.