pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian Weimer <fw@deneb.enyo.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Type OIDs
Date: Wed, 03 Jun 2009 15:26:28 -0400
Message-ID: <10172.1244057188@sss.pgh.pa.us> (raw)
In-Reply-To: <877hztupfn.fsf@mid.deneb.enyo.de>
References: <877hztupfn.fsf@mid.deneb.enyo.de>
Florian Weimer <fw@deneb.enyo.de> 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
view thread (6+ messages) latest in thread
Message-ID: <10172.1244057188@sss.pgh.pa.us>
Permalink: ../10172.1244057188@sss.pgh.pa.us/
Also on: postgresql.org/message-id/10172.1244057188@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, fw@deneb.enyo.de
Subject: Re: Type OIDs
In-Reply-To: <10172.1244057188@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox