Обсуждение: How oids of the base data types often change?

Поиск
Список
Период
Сортировка

How oids of the base data types often change?

От
Dmitriy Igrishin
Дата:
Hey all,<br /><br />For example, when using libpq(-xx), it is possible to get the oid of the type of any column.<br
/>Isthere a guarantee that oids of base types (void, integer, ... ) will not change in future<br />releases of
Postgres?<br/><br />Regards,<br />Dmitriy<br /> 

Re: How oids of the base data types often change?

От
Peter Eisentraut
Дата:
On mån, 2010-07-19 at 14:47 +0400, Dmitriy Igrishin wrote:
> For example, when using libpq(-xx), it is possible to get the oid of
> the type of any column.
> Is there a guarantee that oids of base types (void, integer, ... )
> will not change in future
> releases of Postgres?

There is no actual "guarantee" written in stone, but the OIDs of those
types haven't changed in 10+ years, and there is no conceivable reason
to change them, so you can be pretty sure that they'll remain the same.