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 1gufx7-0007ME-MD for pgsql-admin@arkaria.postgresql.org; Fri, 15 Feb 2019 16:03: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 1gufx6-00065Q-8Q for pgsql-admin@arkaria.postgresql.org; Fri, 15 Feb 2019 16:03:00 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gufx6-00065J-14 for pgsql-admin@lists.postgresql.org; Fri, 15 Feb 2019 16:03:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gufx4-00076w-2t for pgsql-admin@lists.postgresql.org; Fri, 15 Feb 2019 16:02:59 +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 x1FG2pWN003682; Fri, 15 Feb 2019 11:02:51 -0500 From: Tom Lane To: soumik.bhattacharjee@kpn.com cc: pgsql-admin@lists.postgresql.org Subject: Re: Table Drop Error In-reply-to: <2A91BEF8171A5349931391E0C721CC531D6DB881@CPEMS-KPN301.KPNCNL.LOCAL> References: <2A91BEF8171A5349931391E0C721CC531D6DB881@CPEMS-KPN301.KPNCNL.LOCAL> Comments: In-reply-to message dated "Fri, 15 Feb 2019 11:21:26 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3680.1550246571.1@sss.pgh.pa.us> Date: Fri, 15 Feb 2019 11:02:51 -0500 Message-ID: <3681.1550246571@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk writes: > # delete from pg_depend where objid=49179; > DELETE 0 > # delete from pg_depend where objid=49179; > DELETE 0 > # DROP TABLE caprimeta.tcr_codes CASCADE; > ERROR: cache lookup failed for relation 49179 It's not really a great idea to go dropping catalog rows without knowing exactly what you're doing, which I gather you don't. However ... are there pg_depend entries with refobjid=49179 ? regards, tom lane