corruption since 7.4.13 update ?

Lists: pgsql-admin
From: FM <dist-list(at)LEXUM(dot)UMontreal(dot)CA>
To: Mailing List Postgres-Admin <pgsql-admin(at)postgresql(dot)org>
Subject: corruption since 7.4.13 update ?
Date: 2006-07-05 20:18:54
Message-ID: 44AC1EAE.9030305@lexum.umontreal.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hello,
I'e got a very strange (scary) problem.
Look at that :

itu_test-# \d
ERROR: cache lookup failed for relation 1024
itu_test=# \q

[user(at)varese ~]$ psql -h pisa itu_test
itu_test=# \d
ERROR: cache lookup failed for relation 1024

itu_test=# select * from zones;
zone_id | code | region_id
---------+------+-----------
1 | can | 1
(1 row)

itu_test=# \d zones;
ERROR: cache lookup failed for relation 1024

itu_test=# drop table zones cascade;
NOTICE: drop cascades to constraint fk894f2383638e21c5 on table
zones_localized
NOTICE: drop cascades to constraint fk2f1483ad638e21c5 on table
resources_zones
NOTICE: drop cascades to constraint fk6ca02e89638e21c5 on table
regulator_zones
NOTICE: drop cascades to constraint fkfe5f0292638e21c5 on table regulators
DROP TABLE

itu_test=# \d
ERROR: cache lookup failed for relation 1024

itu_test=# VACUUM ANALYZE;
ERROR: could not open segment 1 of relation "pg_class_oid_index"
(target block 1702494308): No such file or directory

itu_test=# REINDEX DATABASE itu_test;
NOTICE: table "pg_class" was reindexed
(...)
NOTICE: table "pg_language" was reindexed
ERROR: could not read block 81235 of relation "pg_largeobject":
Input/output error

itu_test=# \d
ERROR: cache lookup failed for relation 1024

itu_test=# reindex table pg_class;
REINDEX

itu_test=# VACUUM ANALYZE;
WARNING: relation "pg_class" TID 12638/1: OID is invalid
(...)
WARNING: relation "pg_class" TID 12638/24: OID is invalid
ERROR: cannot compare arrays of different element types

itu_test=# \d
List of relations
Schema | Name | Type | Owner
--------+------------------------------+----------+----------
public | categories | table | soft_itu
(...)
public | zones_localized | table | soft_itu
(51 rows)


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: FM <dist-list(at)LEXUM(dot)UMontreal(dot)CA>
Cc: Mailing List Postgres-Admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: corruption since 7.4.13 update ?
Date: 2006-07-14 00:40:10
Message-ID: 23854.1152837610@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

FM <dist-list(at)LEXUM(dot)UMontreal(dot)CA> writes:
> I'e got a very strange (scary) problem.

> ERROR: could not read block 81235 of relation "pg_largeobject":
> Input/output error

This one is very strongly indicative of a disk hardware problem.
The others look like they could be consequences of catalog corruption
ensuing from a flaky disk.

If I were you I'd run some hardware diagnostics. Also see if you can
pg_dump ...

regards, tom lane