pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Error accessing catalog table pg_proc
2+ messages / 2 participants
[nested] [flat]

* Error accessing catalog table pg_proc
@ 2017-11-08 18:07  Cory Nemelka <cnemelka@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Cory Nemelka @ 2017-11-08 18:07 UTC (permalink / raw)
  To: pgsql-admin

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.

Postgres version is 9.5.7 running on Ubuntu 12.04


Can anyone help?

--cnemelka

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Error accessing catalog table pg_proc
@ 2017-11-08 20:27  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Cory Nemelka <cnemelka@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-11-08 20:27 UTC (permalink / raw)
  To: Cory Nemelka <cnemelka@gmail.com>; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-11-08 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 18:07 Error accessing catalog table pg_proc Cory Nemelka <cnemelka@gmail.com>
2017-11-08 20:27 ` Tom Lane <tgl@sss.pgh.pa.us>

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