Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiXxh-006oYl-B8 for pgsql-admin@arkaria.postgresql.org; Tue, 19 Sep 2023 10:28:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qiXxf-008mR7-TZ for pgsql-admin@arkaria.postgresql.org; Tue, 19 Sep 2023 10:28:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiXxe-008mQh-IV for pgsql-admin@lists.postgresql.org; Tue, 19 Sep 2023 10:28:07 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiXxZ-0065ZV-IE for pgsql-admin@lists.postgresql.org; Tue, 19 Sep 2023 10:28:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 2FD4D320084E; Tue, 19 Sep 2023 06:27:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 19 Sep 2023 06:27:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com.au; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm2; t=1695119277; x=1695205677; bh=JBVJ5UR/G7ahq3AyOpoWKmSZT E6G2ohsH7vzn7MHIIk=; b=YT/eXxUHj+wPXw2oWdfN+/YLKtbc7DeOCInf1Uoag TecjswGJKeX3DouDEZVQlvLmI/j1/3r5uOPBK4I1lcN1pncnTIrZ5Df3Ewj/DLes z6Qt+aey41dVBKyTYob3If5OwRuF/7frXjxRVPCrA4HzO5PL/7v8YDQg8Ul0r0Zx TKmAl06UYr4b7xM4F2Ah/lKFOMh484gP1qoXMVFfjtsl2gBQXUJsYQQPxXmoXXVx L9E6qOoKcxI+UuUU1MrqQsC5HavOqWl2vWI2RoScT5tGaBC+QPQnh32lsVARarg3 qqm9TV2mZcopTwm2XoVTm2Fc2BJFSGwghEwQz8/7sbcFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1695119277; x=1695205677; bh=JBVJ5UR/G7ahq3AyOpoWKmSZTE6G2ohsH7v zn7MHIIk=; b=TLkzSQ3rssjszcjzUFS9FLRazNRH8zE7wL8h7o+temUVz/V0YtC zW/UfF90ynvAjKemP2vF7mbSMHklaKDe1YYZSjI+Kwf8/6SBd32NQNVWUDz38XKH K0QVbcRSljz9Jckwoy63b1+ypogXs1+0l4jl3hkHhX+9CvDR/5WOCHyiEcmMe4iL k2tMnGSLTzPWbYGrAf7jHBUB7R7rd2lV0YysJYKheozsFFH5mtAVRjuHb04+5atk BcsXzJaRHj1Q/WCkQCoCfU58u/tvs6MsS5LhloZ+yZHhvCvj7AO0FFh6N6EnMd9q iwbhZHzbpWIVt8nS9xGevuVhkLG9Pw0XPfA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudektddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttddvjeenucfhrhhomhepofgrthhtucfiihgssghinhhsuceomhgrthhtpghgihgs sghinhhssehfrghsthhmrghilhdrtghomhdrrghuqeenucggtffrrghtthgvrhhnpeelue ehteeutefftddujeduueelhfektddtledvueehieeujeefffejgedtudfffeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghtthgpghhisg gsihhnshesfhgrshhtmhgrihhlrdgtohhmrdgruh X-ME-Proxy: Feedback-ID: i6d194797:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Sep 2023 06:27:55 -0400 (EDT) Message-ID: Date: Tue, 19 Sep 2023 20:27:51 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unable to drop extension dblink Content-Language: en-AU To: Tom Lane Cc: pgsql-admin@lists.postgresql.org References: <07dbf1c4-4871-4348-b41a-d0a800da7465@fastmail.com.au> <263517.1695086165@sss.pgh.pa.us> From: Matt Gibbins In-Reply-To: <263517.1695086165@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19/9/23 11:16, Tom Lane wrote: > Matt Gibbins writes: >> In the process of removing extensions not required on the database I was >> in the process of removing the dblink extension from the postgres database. >> First attempt to drop the extension failed with 'ERROR: schema >> "ag_catalog" does not exist'. > Something is very broken there. I wonder if this error could be a > corrupted reference to "pg_catalog" --- but I don't really see what > the details could be, because we don't store schema references as > textual names, rather OIDs. Your follow-on errors also look more > like catalog corruption than anything sane. With only these limited > factoids to look at, it's impossible to say just what's going on > --- but creating bogus objects in response to these errors is > unlikely to get you anywhere. What PG version is this, what's > the installation's history, have you suffered any catastrophic > failures in the recent past? > > regards, tom lane Tom Thanks. The PG version information is PostgreSQL 15.4 (Debian 15.4-2.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit. The database was upgraded from version 13 to 15 in March this year. This problem has only just now started occurring. Not aware of any catastrophic failures. Though have had instances of queries segfaulting. Regards Matt