Re: Pgsql taking a *lot* of CPU time (unkillable). - Mailing list pgsql-general

From Tom Lane
Subject Re: Pgsql taking a *lot* of CPU time (unkillable).
Date
Msg-id 10335.1105812936@sss.pgh.pa.us
Whole thread Raw
In response to Pgsql taking a *lot* of CPU time (unkillable).  (Berteun Damman <berteun@gmail.com>)
Responses Re: Pgsql taking a *lot* of CPU time (unkillable).  (Berteun Damman <berteun@gmail.com>)
List pgsql-general
Berteun Damman <berteun@gmail.com> writes:
> After I've finished using it, and leaving it to itself for a while, it
> starts to consume all CPU time for, apparently, no good reason
> (because it's not doing anything).

Would you attach to the process with a debugger and get a stack trace?

    $ gdb /usr/pkg/bin/postgres PID-of-process
    gdb> bt
    gdb> q

Probably should repeat this a few times to get a clear sense of where
it's looping.

            regards, tom lane

pgsql-general by date:

Previous
From: Bo Lorentsen
Date:
Subject: Re: OID Usage
Next
From: Tom Lane
Date:
Subject: Re: Index optimization ?