From: Gaetano Mendola <mendola@bigfoot.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Chris Gamache <cgg007@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postmaster hogs CPU
Date: Thu, 06 May 2004 03:57:36 +0200
Message-ID: <40999B90.5080004@bigfoot.com> (raw)
In-Reply-To: <19569.1083807754@sss.pgh.pa.us>
References: <1083773198.21180.464.camel@camel>
<20040505200355.43021.qmail@web13807.mail.yahoo.com>
<40999045.2030502@bigfoot.com>
<19569.1083807754@sss.pgh.pa.us>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tom Lane wrote:
| Gaetano Mendola <mendola@bigfoot.com> writes:
|
|>You can basically renice the process that is performing the query.
|
|
| However, that's unlikely to do anything very pleasant, since you'll have
| priority-inversion problems. "nice" has no idea when the process is
| holding a lock that someone else wants ...
That can be true, however in order to have a priority-inversion problem
I think are necessary 3 different level of priority, you have carefully
choose the postmaster and good value of nice in order to have it happen.
I was wandering about do the same work done with vacuum ( the sleep
trick each n records) in order to slow some expensive but not crucial
queries:
test> set query_delay = 10; <-- 10 ms
test> select * from <very expensive query >;
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAmZuP7UpzwH2SGd4RAvVxAKCfvQDk2CkdcC2dCFtgg7nLzf7qTwCgt8/w
F0zVE0HYoI9lb9l7u9qwZIo=
=/mFq
-----END PGP SIGNATURE-----
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: mendola@bigfoot.com, tgl@sss.pgh.pa.us, cgg007@yahoo.com
Subject: Re: Postmaster hogs CPU
In-Reply-To: <40999B90.5080004@bigfoot.com>
References: <1083773198.21180.464.camel@camel> <20040505200355.43021.qmail@web13807.mail.yahoo.com> <40999045.2030502@bigfoot.com> <19569.1083807754@sss.pgh.pa.us> <40999B90.5080004@bigfoot.com>
* 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