Re: New sessions on a database to be dropped consume 100% cpu

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Feike Steenbergen <feikesteenbergen(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: New sessions on a database to be dropped consume 100% cpu
Date: 2018-11-22 16:42:14
Message-ID: 17400.1542904934@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Feike Steenbergen <feikesteenbergen(at)gmail(dot)com> writes:
> While dropping a database, I was unable to do so because of a connected
> session. I used pg_terminate_backend to try to get rid of the session,
> however it is unkillable (from postgres).

The stack trace shows that it's stuck trying to make index entries for
some pg_depend additions. I'm wondering if one of the indexes for
pg_depend is corrupt (infinite loop of page right-links, say).
If you could install amcheck and see what it thinks about those indexes,
that would be interesting.

Of course, if you're just wishing you could get rid of the database,
you could forcibly kill those processes and move on.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-11-22 17:01:58 Re: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
Previous Message PG Bug reporting form 2018-11-22 16:27:53 BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)