From: | Steve Crawford <scrawford(at)pinpointresearch(dot)com> |
---|---|
To: | "pgsql-admin(at)postgresql(dot)org Admin" <pgsql-admin(at)postgresql(dot)org> |
Subject: | could not open relation with OID |
Date: | 2011-07-13 22:32:30 |
Message-ID: | 4E1E1CFE.2030500@pinpointresearch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-07-13 23:32:21 | Re: could not open relation with OID |
Previous Message | Lukasz Brodziak | 2011-07-13 22:24:26 | Problem connecting to Postgresql on ubuntu 11.04 on virtual box |