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 1jKlN5-0001ki-NG for pgsql-admin@arkaria.postgresql.org; Sat, 04 Apr 2020 16:10:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKlN4-0004uF-K3 for pgsql-admin@arkaria.postgresql.org; Sat, 04 Apr 2020 16:10:10 +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 1jKlN4-0004u4-BY for pgsql-admin@lists.postgresql.org; Sat, 04 Apr 2020 16:10:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKlN2-0007NO-2e for pgsql-admin@lists.postgresql.org; Sat, 04 Apr 2020 16:10:09 +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 034G9YNF025616; Sat, 4 Apr 2020 12:09:34 -0400 From: Tom Lane To: Axel Rau cc: pgsql-admin@lists.postgresql.org Subject: Re: NEEDING HELP: dropping none-existing extension In-reply-to: <4A197984-1E5A-410C-ACDF-83E18A4734E5@Chaos1.DE> References: <4A197984-1E5A-410C-ACDF-83E18A4734E5@Chaos1.DE> Comments: In-reply-to Axel Rau message dated "Sat, 04 Apr 2020 17:48:24 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25614.1586016574.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 04 Apr 2020 12:09:34 -0400 Message-ID: <25615.1586016574@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Axel Rau writes: > during upgrade from 11 to 12, pg_upgrade errors out: > - - - > could not load library "$libdir/pg_repack": ERROR: could not access fil= e "$libdir/pg_repack": No such file or directory > Database: development > Database: operations > Database: pki_op > - - - > I find no extension pg_repack, only views with that name in those DBs. > While trying to drop them, I get: > - - - > ERROR: cannot drop schema repack because extension pg_repack requires it= HINT: You can drop extension pg_repack instead. It is really, really, really difficult to believe that you got that error if there's not any extension pg_repack in the database. Even granting the possibility of catalog corruption, there would have to be some row in pg_extension containing extname =3D 'pg_repack', or the message text could not have been generated. So look again ... regards, tom lane