Re: Is it safe to use fundamental type OIDs defined in server/catalog/pg_type.h from client?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hoon H(dot)" <drawtree(at)gmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Is it safe to use fundamental type OIDs defined in server/catalog/pg_type.h from client?
Date: 2013-12-05 23:27:24
Message-ID: 22401.1386286044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"Hoon H." <drawtree(at)gmail(dot)com> writes:
> According to some mailing list entries,

> http://www.postgresql.org/message-id/20080708000535.GA10491@cuci.nl
> http://www.postgresql.org/message-id/AANLkTimiNjQa7ws1tyR_W6RQPec6RlxQtWfACNMnZ_1P@mail.gmail.com

> It seems safe to use macros defined in `server/catalog/pg_type.h`, but I still doubt because I couldn't find any official policy on these values.

We never have changed the OIDs of those basic types, and I doubt we would.
We're well aware that some client code knows their numbers.

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Francisco Figueiredo Jr. 2013-12-10 11:38:20 Npgsql 2.0.14 released!
Previous Message Hoon H. 2013-12-05 20:43:13 Is it safe to use fundamental type OIDs defined in server/catalog/pg_type.h from client?