Обсуждение: Do the datatypes have set id/oid that are constant?

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

Do the datatypes have set id/oid that are constant?

От
Mark Worsdall
Дата:
Hi,

I was wandering if the oid's for the datatypes are the same for every
installation of postgres?

M.

--
Mark Worsdall
https://www.paypal.com/refer/pal=LS79YHQ9VUGLJ

Re: Do the datatypes have set id/oid that are constant?

От
Tom Lane
Дата:
Mark Worsdall <mysql@wizdom.org.uk> writes:
> I was wandering if the oid's for the datatypes are the same for every
> installation of postgres?

Built-in datatypes will have the same OIDs in every installation of a
given version (and, in practice, they generally don't change across
versions either).  Types created after initdb will have variable OIDs.

            regards, tom lane