Re: Controlling CPU Usage in PostgreSQL

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Aaron Bono <postgresql(at)aranya(dot)com>
Cc: Thomas Pundt <thomas(dot)pundt(at)rp-online(dot)de>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Controlling CPU Usage in PostgreSQL
Date: 2006-08-01 19:43:36
Message-ID: 44CFAEE8.7010900@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


> Bottom line, I am skeptical if this will really achieve my goal - to
> have the functions run with low priority.
>
> Is there a way to tell PostgreSQL to change the nice value of a
> particular connection? I guess I could use renice but that means a lot
> of shell scripting to determine what PID to change - I am not a shell
> script expert and would rather not pursue that option.

You can't really do what you want, and I am skeptical that it would be a
good idea anyway. Honestly it sounds like you have an implementation
problem.

Joshua D. Drake

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Aaron Bono 2006-08-01 19:52:32 Re: Controlling CPU Usage in PostgreSQL
Previous Message Scott Marlowe 2006-08-01 19:22:31 Re: Controlling CPU Usage in PostgreSQL