pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: could not open relation with OID
Date: Wed, 13 Jul 2011 15:32:30 -0700
Message-ID: <4E1E1CFE.2030500@pinpointresearch.com> (raw)

I've seen the "could not open relation with OID" error a couple times 
recently and Googling for that error gives responses ranging from *very 
scary* to fuggetaboutit.

The error today occurred running this query which is part of a database 
status reporting script:
select
     pg_size_pretty(sum(pg_relation_size(oid))::bigint) as "Database 
Table Size"
from
   pg_class
where
   relkind = 'r'
;

could not open relation with OID 81285213

Pre-answering some potential questions based on threads I read:

- Version is 8.3 x86_64 (about to be replaced with 9.0).

- Database appears to be functioning fine otherwise and query reran 
without error.

- Size just under 100-million total rows and 12GB (counting tables only).

- Backups completing without error.

- Restore of backup to a twin machine completes without error.

- There are lots of scripts and processes that use temporary tables 
(there are currently 35 pg_temp_XX schemas with the highest being 
pg_temp_55)

So...

Worry or not worry?

Cheers,
Steve



view thread (3+ messages)  latest in thread

Message-ID: <4E1E1CFE.2030500@pinpointresearch.com>
Permalink:  ../4E1E1CFE.2030500@pinpointresearch.com/
Also on:    postgresql.org/message-id/4E1E1CFE.2030500@pinpointresearch.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com
  Subject: Re: could not open relation with OID
  In-Reply-To: <4E1E1CFE.2030500@pinpointresearch.com>

* 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