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 1oWfef-0003dp-OB for pgsql-general@arkaria.postgresql.org; Fri, 09 Sep 2022 15:10:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWfed-00017z-3H for pgsql-general@arkaria.postgresql.org; Fri, 09 Sep 2022 15:10:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWfec-00017p-Ou for pgsql-general@lists.postgresql.org; Fri, 09 Sep 2022 15:10:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWfea-00018U-Oc for pgsql-general@lists.postgresql.org; Fri, 09 Sep 2022 15:10:50 +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 289FAj2J121104; Fri, 9 Sep 2022 11:10:45 -0400 From: Tom Lane To: shanker singh cc: "pgsql-general@lists.postgresql.org" , Shanker Singh Subject: Re: ERROR: cache lookup failed for user mapping 476444 In-reply-to: <1866570931.1445992.1662728664882@mail.yahoo.com> References: <1866570931.1445992.1662728664882@mail.yahoo.com> Comments: In-reply-to shanker singh message dated "Fri, 09 Sep 2022 13:04:24 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <121102.1662736245.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 09 Sep 2022 11:10:45 -0400 Message-ID: <121103.1662736245@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk shanker singh writes: > I am trying to delete an extension db2_fdw but getting  > ERROR:  cache lookup failed for user mapping 476444 Hmm, seems like there must be a pg_depend entry claiming that that user mapping depends on the extension; which it shouldn't, but ... Is there a pg_depend row having objid = 476444? What's in it? regards, tom lane