Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icA1x-0001Iy-KH for pgsql-admin@arkaria.postgresql.org; Tue, 03 Dec 2019 15:24:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icA1w-0002Y2-Cg for pgsql-admin@arkaria.postgresql.org; Tue, 03 Dec 2019 15:24:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icA1v-0002Xv-WA for pgsql-admin@lists.postgresql.org; Tue, 03 Dec 2019 15:24:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icA1t-0006eA-Ln for pgsql-admin@lists.postgresql.org; Tue, 03 Dec 2019 15:23:58 +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 xB3FNuKW032506; Tue, 3 Dec 2019 10:23:56 -0500 From: Tom Lane To: Ramiro Barreca cc: pgsql-admin@lists.postgresql.org Subject: Re: ERROR: cache lookup failed for type 16292881 In-reply-to: References: Comments: In-reply-to Ramiro Barreca message dated "Tue, 03 Dec 2019 09:55:15 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32504.1575386636.1@sss.pgh.pa.us> Date: Tue, 03 Dec 2019 10:23:56 -0500 Message-ID: <32505.1575386636@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ramiro Barreca writes: > Since a few days ago we are having problems while performing backup using > pg_dump to a PG 8.4 database over a Centos 5.5 You realize of course that 8.4.anything is long out of support, and therefore full of known bugs. But I wonder whether this is even a reasonably late minor release of 8.4. > *pg_dump: Error message from server: ERROR: cache lookup failed for type > 16292881* > *pg_dump: The command was: SELECT proretset, prosrc, probin, > pg_catalog.pg_get_function_arguments(oid) AS funcargs, > pg_catalog.pg_get_function_identity_arguments(oid) AS funciargs, > pg_catalog.pg_get_function_result(oid) AS funcresult, proiswindow, > provolatile, proisstrict, prosecdef, proconfig, procost, prorows, (SELECT > lanname FROM pg_catalog.pg_language WHERE oid = prolang) AS lanname FROM > pg_catalog.pg_proc WHERE oid = '16292882'::pg_catalog.oid* You might learn something productive from select * from pg_proc where oid = '16292882'; The direct problem of course is that oid 16292881 can't be found in pg_type. If you're really lucky, that's just index corruption that could be fixed by reindexing pg_type. regards, tom lane