Re: PQftype() - Mailing list pgsql-hackers

From Magnus Naeslund\(f\)
Subject Re: PQftype()
Date
Msg-id 03ae01c0d1c2$d56858e0$020a0a0a@totalmef
Whole thread Raw
In response to PQftype()  ("Magnus Naeslund\(f\)" <mag@fbab.net>)
List pgsql-hackers
From: "Tom Lane" <tgl@sss.pgh.pa.us>
[snip]
>
> The system type OIDs are stable.  User-defined types would probably have
> a new OID after a dump and reload.
>
> > Or could i do like the ODBC driver, autogenerate a .h out of that table.
>
> I would not recommend relying on compiled-in OID knowledge for any types
> other than the system-defined datatypes.  If you expect to have to deal
> with user-defined types, it's best to cache the results of pg_type
> lookups at the client end.  You need not worry about OIDs changing
> during a single client connection.
>
> regards, tom lane
>

Ok, then i can use static thing for my application (for now atleast).
Thanks..

Magnus



pgsql-hackers by date:

Previous
From: "Magnus Naeslund\(f\)"
Date:
Subject: Re: PQftype()
Next
From: Tom Lane
Date:
Subject: Re: PQftype()