Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCWyi-0004e8-Fy for pgsql-admin@arkaria.postgresql.org; Wed, 08 Nov 2017 20:29:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eCWyh-000688-En for pgsql-admin@arkaria.postgresql.org; Wed, 08 Nov 2017 20:29:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eCWwu-0002uo-KP for pgsql-admin@postgresql.org; Wed, 08 Nov 2017 20:27:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eCWwn-0001Cv-Fh for pgsql-admin@postgresql.org; Wed, 08 Nov 2017 20:27:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vA8KRcra000392; Wed, 8 Nov 2017 15:27:38 -0500 From: Tom Lane To: Cory Nemelka cc: pgsql-admin@postgresql.org Subject: Re: Error accessing catalog table pg_proc In-reply-to: References: Comments: In-reply-to Cory Nemelka message dated "Wed, 08 Nov 2017 11:07:49 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <390.1510172858.1@sss.pgh.pa.us> Date: Wed, 08 Nov 2017 15:27:38 -0500 Message-ID: <391.1510172858@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Cory Nemelka 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