From: Tom Lane <tgl@sss.pgh.pa.us>
To: Feike Steenbergen <feikesteenbergen@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: New sessions on a database to be dropped consume 100% cpu
Date: Thu, 22 Nov 2018 11:42:14 -0500
Message-ID: <17400.1542904934@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK_s-G3K_L+7LwEDwMEpeFKBpjXHweLs8nikWwERkuVUzgtM2g@mail.gmail.com>
References: <CAK_s-G3K_L+7LwEDwMEpeFKBpjXHweLs8nikWwERkuVUzgtM2g@mail.gmail.com>
Feike Steenbergen <feikesteenbergen@gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, feikesteenbergen@gmail.com
Subject: Re: New sessions on a database to be dropped consume 100% cpu
In-Reply-To: <17400.1542904934@sss.pgh.pa.us>
References: <CAK_s-G3K_L+7LwEDwMEpeFKBpjXHweLs8nikWwERkuVUzgtM2g@mail.gmail.com> <17400.1542904934@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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