pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unable to drop extension dblink
4+ messages / 3 participants
[nested] [flat]

* Unable to drop extension dblink
@ 2023-09-18 22:04 Matt Gibbins <matt_gibbins@fastmail.com.au>
  2023-09-19 01:14 ` Re: Unable to drop extension dblink David G. Johnston <david.g.johnston@gmail.com>
  2023-09-19 01:16 ` Re: Unable to drop extension dblink Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 4+ messages in thread

From: Matt Gibbins @ 2023-09-18 22:04 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

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'.

Created the extension and then received the 'ERROR: table "ag_label" 
does not exist'.

In response I created the table with a dummy colum 'label'.

Dropping the extension resulted in "ERROR: index 
"pgsql-admin@lists.postgresql.org"'. So I created the index.

Next attempt resulted in 'ERROR:  column is not in index'.

Now I appear to be stuck in a loop with 'ERROR:  column is not in index' 
regardless of any attempt to remove these tables and the original 
extension.

Any assistance appreciated.

Regards

Matt.






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Unable to drop extension dblink
  2023-09-18 22:04 Unable to drop extension dblink Matt Gibbins <matt_gibbins@fastmail.com.au>
@ 2023-09-19 01:14 ` David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: David G. Johnston @ 2023-09-19 01:14 UTC (permalink / raw)
  To: Matt Gibbins <matt_gibbins@fastmail.com.au>; +Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>

On Monday, September 18, 2023, Matt Gibbins <matt_gibbins@fastmail.com.au>
wrote:

> 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'.
>
> Created the extension and then received the 'ERROR: table "ag_label" does
> not exist'.
>
> In response I created the table with a dummy colum 'label'.
>
> Dropping the extension resulted in "ERROR: index "
> pgsql-admin@lists.postgresql.org"'. So I created the index.
>
> Next attempt resulted in 'ERROR:  column is not in index'.
>
> Now I appear to be stuck in a loop with 'ERROR:  column is not in index'
> regardless of any attempt to remove these tables and the original extension.
>
> Any assistance appreciated.
>

Is the output really that corrupted or is your writing of the email
introducing typos and whatnot that aren’t actually being shown by the
system?

I’d probably hope my backup isn’t corrupted and restore into a newly
created instance where the extension manipulation just works.

David J.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Unable to drop extension dblink
  2023-09-18 22:04 Unable to drop extension dblink Matt Gibbins <matt_gibbins@fastmail.com.au>
@ 2023-09-19 01:16 ` Tom Lane <tgl@sss.pgh.pa.us>
  2023-09-19 10:27   ` Re: Unable to drop extension dblink Matt Gibbins <matt_gibbins@fastmail.com.au>
  1 sibling, 1 reply; 4+ messages in thread

From: Tom Lane @ 2023-09-19 01:16 UTC (permalink / raw)
  To: Matt Gibbins <matt_gibbins@fastmail.com.au>; +Cc: pgsql-admin@lists.postgresql.org

Matt Gibbins <matt_gibbins@fastmail.com.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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Unable to drop extension dblink
  2023-09-18 22:04 Unable to drop extension dblink Matt Gibbins <matt_gibbins@fastmail.com.au>
  2023-09-19 01:16 ` Re: Unable to drop extension dblink Tom Lane <tgl@sss.pgh.pa.us>
@ 2023-09-19 10:27   ` Matt Gibbins <matt_gibbins@fastmail.com.au>
  0 siblings, 0 replies; 4+ messages in thread

From: Matt Gibbins @ 2023-09-19 10:27 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin@lists.postgresql.org

On 19/9/23 11:16, Tom Lane wrote:
> Matt Gibbins <matt_gibbins@fastmail.com.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

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






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2023-09-19 10:27 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-09-18 22:04 Unable to drop extension dblink Matt Gibbins <matt_gibbins@fastmail.com.au>
2023-09-19 01:14 ` David G. Johnston <david.g.johnston@gmail.com>
2023-09-19 01:16 ` Tom Lane <tgl@sss.pgh.pa.us>
2023-09-19 10:27   ` Matt Gibbins <matt_gibbins@fastmail.com.au>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox