Re: pg_dump oid problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: steve <steve(at)jlajla(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump oid problems
Date: 2001-10-11 16:15:16
Message-ID: 10339.1002816916@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

steve <steve(at)jlajla(dot)com> writes:
> DEBUG: query: SELECT c.relname FROM pg_index i LEFT OUTER JOIN pg_class c
> ON c.oid = i.indexrelid WHERE i.indrelid = 3527162388AND i.indisprimary
> ERROR: dtoi4: integer out of range

> The 3527162388AND is exactly as shown in the log, with no space between the
> value and the AND, I guess this is the problem, wherever it's being
> generated in the code.

That's evidently coming from line 2346 of src/bin/pg_dump/pg_dump.c:

"WHERE i.indrelid = %s"

Try changing it to

"WHERE i.indrelid = '%s'::oid "

(Problem seems to be solved already in 7.2devel)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bill Studenmund 2001-10-11 16:17:45 How do I get the current time in seconds in the unix epoch?
Previous Message Tatsuo Ishii 2001-10-11 14:23:35 Re: iso-8859-15/16 to MULE