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

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c
Date: 2003-01-06 06:21:47
Message-ID: 3E19207B.6BC2C963@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tom Lane wrote:
>
> Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)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.

/* Can't use fmtId twice in one call... */
appendPQExpBuffer(tblQry,
"UPDATE %s SET %s =
%s.newOid"
,
tblName->data,
fmtId(attr),
BLOB_XREF_TABLE);
appendPQExpBuffer(tblQry,
" FROM %s WHERE
%s.oldOid = %s.%s",
BLOB_XREF_TABLE,
BLOB_XREF_TABLE,
tblName->data,
fmtId(attr));

regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2003-01-06 06:25:53 Re: pgsql-server/src/bin/pg_dump pg_backup_archiver.c
Previous Message Bruce Momjian - CVS 2003-01-06 06:07:20 pgsql-server/src/include pg_config.h.in