Skip site navigation (1) Skip section navigation (2)

Re: Type OIDs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Florian Weimer <fw(at)deneb(dot)enyo(dot)de>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Type OIDs
Date: 2009-06-03 19:26:28
Message-ID: 10172.1244057188@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
Florian Weimer <fw(at)deneb(dot)enyo(dot)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

In response to

  • Type OIDs at 2009-06-03 18:45:16 from Florian Weimer

Responses

pgsql-interfaces by date

Next:From: Joe ConwayDate: 2009-06-04 01:18:22
Subject: Re: Type OIDs
Previous:From: Florian WeimerDate: 2009-06-03 18:45:16
Subject: Type OIDs

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group