pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cory Nemelka <cnemelka@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Error accessing catalog table pg_proc
Date: Wed, 08 Nov 2017 15:27:38 -0500
Message-ID: <391.1510172858@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMe5Gn12H8FWyo3-+H1kbZZu3gafPg2uE2sTn9Xq-ytteToy1w@mail.gmail.com>
References: <CAMe5Gn12H8FWyo3-+H1kbZZu3gafPg2uE2sTn9Xq-ytteToy1w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Cory Nemelka <cnemelka@gmail.com> writes:
> We are receiving the following error when trying to access pg_proc table:
> [local] cnemelka=# \d pg_proc;
> ERROR:  XX000: cache lookup failed for attribute 1 of relation 1255
> LOCATION:  get_relid_attribute_name, lsyscache.c:807

> This error is preventing backups with pg_dump.  It doesn't seem to be
> affecting the database overall.  We ran VACUUM FULL and REINDEX on the
> catalog tables but the error persists.

Hmm, did you reindex pg_attribute in particular?  Because that's where the
apparently missing data is.

I'm afraid VACUUM FULL would've destroyed any evidence of what went wrong,
but conceivably you could reinsert the missing row(s) by copying from
another database in the cluster.  pg_attribute rows for system catalogs
should be the same across all databases.

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <391.1510172858@sss.pgh.pa.us>
Permalink:  ../391.1510172858@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/391.1510172858@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, cnemelka@gmail.com
  Subject: Re: Error accessing catalog table pg_proc
  In-Reply-To: <391.1510172858@sss.pgh.pa.us>

* 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