Обсуждение: pg_dump oid representation

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

pg_dump oid representation

От
Manuel Sugawara
Дата:
I did the es translation of pg_dump and while looking at the code I
found that in several places the char * representation of Oid's is
used instead of the oid itself. Any one knows why is done this
way?

Regards,
Manuel.


Re: pg_dump oid representation

От
Tom Lane
Дата:
Manuel Sugawara <masm@fciencias.unam.mx> writes:
> I did the es translation of pg_dump and while looking at the code I
> found that in several places the char * representation of Oid's is
> used instead of the oid itself. Any one knows why is done this
> way?

AFAIR pg_dump invariably stores OIDs as strings rather than numbers.
This is arguably inefficient, but no one's felt like expending the
effort to change it.
        regards, tom lane