Re: postgres catalog files problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Harrison" <joshques(at)gmail(dot)com>
Cc: "Erik Jones" <erik(at)myemma(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: postgres catalog files problem
Date: 2007-09-17 16:20:25
Message-ID: 28876.1190046025@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Josh Harrison" <joshques(at)gmail(dot)com> writes:
> When i try to give this query

> UPDATE payment
> SET desc='New description'
> WHERE payment_id='xyz'

> I got the error
> ERROR: could not open relation with OID 672178

Hmm, there apparently *is* a pg_class row for relation 'payment', else
you'd not get this far, and I'll bet it's got OID 672178 --- try "select
oid from pg_class where relname = 'payment'" to see. If so, it seems
likely that this is just an index corruption and you can get out of it
by REINDEXing pg_class_oid_index. Depending on what PG version you are
using, that may require special setup --- read the REINDEX reference
page *for your version* before proceeding.

What version is it, anyway, and what were you doing before you got this
error the first time? This isn't exactly an everyday type of problem.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bima Djaloeis 2007-09-17 16:50:46 ON INSERT => execute AWK/SH/EXE?
Previous Message Josh Harrison 2007-09-17 15:50:42 Re: postgres catalog files problem