Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frRoO-0005BY-Oq for pgsql-general@arkaria.postgresql.org; Sun, 19 Aug 2018 17:48:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frRoN-0002eY-5M for pgsql-general@arkaria.postgresql.org; Sun, 19 Aug 2018 17:48:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frRoM-0002eI-Q0 for pgsql-general@lists.postgresql.org; Sun, 19 Aug 2018 17:48:22 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frRoJ-0000Gw-I0 for pgsql-general@postgresql.org; Sun, 19 Aug 2018 17:48:21 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id F21B2EA466BF for ; Sun, 19 Aug 2018 10:48:17 -0700 (MST) Date: Sun, 19 Aug 2018 10:48:17 -0700 (MST) From: DrakoRod To: pgsql-general@postgresql.org Message-ID: <1534700897989-0.post@n3.nabble.com> Subject: ERROR: cache lookup failed for function 125940 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi folks! I've a big problem with a database, is a PostgreSQL 9.6 version on Ubuntu. When a tried read some tables (approximately 7 of 1073) show this error:=20 *ERROR: cache lookup failed for function 125940* So, I was reading this like data corruption specially the postgresql's system catalog . I tried generate a dump but in any case, when I try make a database dump or table's dump show this error:=20 *pg_dump: [archiver (db)] query failed: ERROR: cache lookup failed for function 406 pg_dump: [archiver (db)] query was: SELECT oid, tableoid, pol.polname, pol.polcmd, CASE WHEN pol.polroles =3D '{0}' THEN 'PUBLIC' ELSE pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.quote_ident(rolname) fro= m pg_catalog.pg_roles WHERE oid =3D ANY(pol.polroles)), ', ') END AS polroles= , pg_catalog.pg_get_expr(pol.polqual, pol.polrelid) AS polqual, pg_catalog.pg_get_expr(pol.polwithcheck, pol.polrelid) AS polwithcheck FROM pg_catalog.pg_policy pol WHERE polrelid =3D '129561'* No matter if this table or table set I can read with a SELECT or not, I can't run pg_dump in the database show me ever the above error.=20 I have idea, of almost all tables I can run a copy to send data to a file, so I will run copy per table, but just 7 tables a can't read by a select. Mi questions is: Is there any other way to read this tables and extract the tuples?, Reading data file directly? omitting some access to catalog?=20 Thanks=20 ----- Dame un poco de fe, eso me bastar=C3=A1. Rozvo Ware Solutions=20 -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml