Re: Unable to drop extension dblink

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matt Gibbins <matt_gibbins(at)fastmail(dot)com(dot)au>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Unable to drop extension dblink
Date: 2023-09-19 01:16:05
Message-ID: 263517.1695086165@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Matt Gibbins <matt_gibbins(at)fastmail(dot)com(dot)au> 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Matt Gibbins 2023-09-19 10:27:51 Re: Unable to drop extension dblink
Previous Message David G. Johnston 2023-09-19 01:14:20 Re: Unable to drop extension dblink