From: Tom Lane <tgl@sss.pgh.pa.us>
To: nickf@ontko.com
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Database is slow, vacuum hangs
Date: Fri, 01 Mar 2002 16:16:00 -0500
Message-ID: <1393.1015017360@sss.pgh.pa.us> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGCEIIEHAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGCEIIEHAA.nickf@ontko.com>
"Nick Fankhauser" <nickf@ontko.com> writes:
> The deletes were slow, but worked, so the tables are all empty now. I
> started the vacuum and let it run for 4 hours while I did other work & it
> never came back.
Is the vacuum actually running (accumulating any CPU time)? Or is it
just waiting on a lock held by one of those other guys?
> During this time, I noticed that two postmaster processes
> were constantly running- each taking up almost exactly half of the CPU time.
> There was no disk activity. After I canceled the vacuum, the two postmaster
> processes remained and continued to use all of the CPU time. (they're still
> there.)
And what are they doing --- who started them, what query was sent to
'em, etc?
If you haven't a clue, try attaching to each process with a debugger and
printing out the global variable debug_query_string.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, nickf@ontko.com
Subject: Re: Database is slow, vacuum hangs
In-Reply-To: <1393.1015017360@sss.pgh.pa.us>
References: <NEBBLAAHGLEEPCGOBHDGCEIIEHAA.nickf@ontko.com> <1393.1015017360@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