pg_dump: ERROR: could not open relation with OID ...

From: "Thomas F(dot) O'Connell" <tf(at)o(dot)ptimized(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_dump: ERROR: could not open relation with OID ...
Date: 2007-06-04 17:01:29
Message-ID: 0B9C5AC3-B78E-48FD-9B51-521A558632DC@o.ptimized.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

During a routine backup procedure (that does not run nightly) for an
8.2.3 postgres cluster, pg_dump failed:

pg_dump: Error message from server: ERROR: could not open relation
with OID ...

In doing some log forensics, I discovered that this error has been
showing up in the logs intermittently unconnected to pg_dump for the
past 6 days. It's not occurring at an alarming rate, but the fact
that it's occurring at all is mildly alarming, and the fact that it's
preventing backups is even more alarming.

In reviewing the logs, one OID in particular shows up in the vast
majority of the errors, and it doesn't correspond to any entries I
can find in pg_class. A handful of other OIDs show up, and a sampling
of them reveals, too, no entries in pg_class.

The other curious item is that a number of the errors occur in a
pattern where they precede other error statements and don't seem to
be directly tied to connections, except during the failed pg_dumps.

The typical pattern in the logs is:

[timestamp] [pid] [remote host/port]:ERROR: [error message]
[timestamp] [pid] [remote host/port]:STATEMENT: [statement]

With this error, though, the format doesn't include the remote host/
port, which makes me wonder if it's occurring as a result of
autovacuum or other local/internal activity.

Now my thoughts return nervously to a previous thread:

http://archives.postgresql.org/pgsql-general/2007-05/msg01208.php

I didn't think much of it at the time, but now I wonder if it was
indicative of trouble on the way?

--
Thomas F. O'Connell

optimizing modern web applications
: for search engines, for usability, and for performance :

http://o.ptimized.com/
615-260-0005

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zoltan Boszormenyi 2007-06-04 17:18:45 Re: NULLS and User Input WAS Re: multimaster
Previous Message PFC 2007-06-04 16:41:06 Re: Numeric performances