Re: Type OIDs
Tom Lane <[email protected]> Wed, 03 Jun 2009 15:26:28 -0400
| Newsgroups | gmane.comp.db.postgresql.interfaces |
|---|---|
| Message-ID | <[email protected]> |
Florian Weimer <[email protected]> writes: > Can I embed the types I'm interested in into my program, or should I > query the server at least once per connection to get the mapping? I'm > interested in types such as INTEGER, TEXT, BYTEA, etc. No user > defined types, and nothing fancy. Ultra-long-term portability isn't > required, either. Well, the type OIDs of the standard built-in types haven't changed in at least ten years, but that doesn't mean we won't change 'em in the future. I'd advise at least using the #define's from pg_type.h rather than writing actual numeric constants. regards, tom lane -- Sent via pgsql-interfaces mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces