pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Florian Weimer <fw@deneb.enyo.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Type OIDs
Date: Wed, 03 Jun 2009 18:18:22 -0700
Message-ID: <4A2720DE.6070003@joeconway.com> (raw)
In-Reply-To: <10172.1244057188@sss.pgh.pa.us>
References: <877hztupfn.fsf@mid.deneb.enyo.de>
<10172.1244057188@sss.pgh.pa.us>
Tom Lane wrote:
> 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.
I'll second that. It's exactly what I've been doing in PL/R for several
years now.
Joe
view thread (6+ messages) latest in thread
Message-ID: <4A2720DE.6070003@joeconway.com>
Permalink: ../4A2720DE.6070003@joeconway.com/
Also on: postgresql.org/message-id/4A2720DE.6070003@joeconway.com
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: mail@joeconway.com, tgl@sss.pgh.pa.us, fw@deneb.enyo.de
Subject: Re: Type OIDs
In-Reply-To: <4A2720DE.6070003@joeconway.com>
* 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