pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: postgres@kellerer.name
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15000: Cache lookup failure
Date: Mon, 08 Jan 2018 10:12:17 -0500
Message-ID: <29960.1515424337@sss.pgh.pa.us> (raw)
In-Reply-To: <20180108113150.21778.4472@wrigleys.postgresql.org>
References: <20180108113150.21778.4472@wrigleys.postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> We have a script that copies data from one database to another using pg_dump
> (plain text format) and the pipes the output to psql 
> The script consistently fails with:

> pg_dump: [archiver (db)] query failed: ERROR:  cache lookup failed for
> relation 16693
> pg_dump: [archiver (db)] query was: SELECT tableoid, oid, conname,
> pg_catalog.pg_get_constraintdef(oid) AS consrc, conislocal, convalidated
> FROM pg_catalog.pg_constraint WHERE conr                           elid =
> '16693'::pg_catalog.oid    AND contype = 'c' ORDER BY conname

Hmph.  Is it always the same OID in the message and the reported query?
If so, what table does that correspond to (try select '16693'::regclass)
and is there anything odd about that table's declaration or usage?

It's hard to explain this as a race condition because pg_dump should
have a lock on the table by the time it issues this query.  So I'm
not sure what's going on.

			regards, tom lane




view thread (7+ messages)  latest in thread

Message-ID: <29960.1515424337@sss.pgh.pa.us>
Permalink:  ../29960.1515424337@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29960.1515424337@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, postgres@kellerer.name
  Subject: Re: BUG #15000: Cache lookup failure
  In-Reply-To: <29960.1515424337@sss.pgh.pa.us>
  References: <20180108113150.21778.4472@wrigleys.postgresql.org> <29960.1515424337@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox