Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtgy4-00065l-9I for pgsql-general@arkaria.postgresql.org; Fri, 10 Jul 2020 00:32:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtgy3-0004pv-6S for pgsql-general@arkaria.postgresql.org; Fri, 10 Jul 2020 00:32:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtgy2-0004pe-Tl for pgsql-general@lists.postgresql.org; Fri, 10 Jul 2020 00:32:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtgxz-00010P-RG for pgsql-general@lists.postgresql.org; Fri, 10 Jul 2020 00:32:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 06A0WbQX2016432; Thu, 9 Jul 2020 20:32:37 -0400 From: Tom Lane To: Alvaro Herrera cc: Michel Pelletier , pgsql-general Subject: Re: invalid non-zero objectSubId for object class In-reply-to: <20200710002654.GA29953@alvherre.pgsql> References: <20200710002654.GA29953@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 09 Jul 2020 20:26:54 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2016430.1594341157.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 09 Jul 2020 20:32:37 -0400 Message-ID: <2016431.1594341157@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-Jul-09, Michel Pelletier wrote: >> I don't seem to have either: >> = >> dev=3D> select * from pg_depend where classid =3D 297108 or refclassid = =3D 297108; >> classid | objid | objsubid | refclassid | refobjid | refobjsubid | dept= ype >> ---------+-------+----------+------------+----------+-------------+----= ----- >> (0 rows) > Maybe try looking in pg_shdepend? Or pg_description? I think it has to be pg_depend, because there'd be no reason to be calling getObjectClass() on a entry from one of those other catalogs during a DROP TABLE. So my thoughts are now turning towards there being corruption in pg_depend's indexes as well as the heap. Try doing the above query after turning enable_indexscan and enable_bitmapscan off. regards, tom lane