Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c
Date
Msg-id 7166.1041834353@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c  (Hiroshi Inoue <Inoue@tpf.co.jp>)
List pgsql-committers
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> Tom Lane wrote:
>>
>> Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> Please tell me how we avoid the failure
> ERROR:  Unable to identify an operator '=' for types 'oid' and 'lo'
> You will have to retype this query using an explicit cast
> in pg_restore.
>>
>> What query triggers that, exactly?

> The query made by the following code in FixupBlobRefs in pg_backup_db.c.

Hmmm ... does it help if we change the query to

                                                  " FROM %s WHERE
%s.oldOid = %s.%s::pg_catalog.oid",

I suspect though that the real issue is the CREATE CAST is failing;
if so, this won't help.  See my comment to Peter earlier today.

            regards, tom lane

pgsql-committers by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c
Next
From: Hiroshi Inoue
Date:
Subject: Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c