Re: Debugging a backend stuck consuming CPU

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "ktm(at)rice(dot)edu" <ktm(at)rice(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Debugging a backend stuck consuming CPU
Date: 2016-05-19 13:58:45
Message-ID: 15918.1463666325@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"ktm(at)rice(dot)edu" <ktm(at)rice(dot)edu> writes:
> I am investigating a problem with a backend that appears to be stuck
> and spinning while performing a "DISCARD ALL" command. The system is
> running an older release 9.2.2.

You do realize that the current release in that series is 9.2.17.

> Are there any bugs that could be causing this behavior?

Known bugs are summarized here:
http://www.postgresql.org/docs/9.2/static/release.html

> How can I tell what the process is actually doing?

Getting a stack trace with gdb might be informative:
https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-05-19 13:59:12 Re: Debugging a backend stuck consuming CPU
Previous Message ktm@rice.edu 2016-05-19 13:46:15 Debugging a backend stuck consuming CPU