pg_dump oid representation

Started by Manuel Sugawaraabout 22 years ago2 messages
#1Manuel Sugawara
masm@fciencias.unam.mx

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.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Manuel Sugawara (#1)
Re: pg_dump oid representation

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