X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7442A9FB1C3 for ; Tue, 1 Aug 2006 16:43:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 32129-02 for ; Tue, 1 Aug 2006 16:43:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 2EAC89FA4A8 for ; Tue, 1 Aug 2006 16:43:35 -0300 (ADT) Received: from [192.168.1.100] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k71JhXRe021384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Aug 2006 12:43:34 -0700 Message-ID: <44CFAEE8.7010900@commandprompt.com> Date: Tue, 01 Aug 2006 12:43:36 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: Aaron Bono CC: Thomas Pundt , pgsql-admin@postgresql.org Subject: Re: Controlling CPU Usage in PostgreSQL References: <200607311101.36629.mlists@rp-online.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 01 Aug 2006 12:43:34 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.233 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/16 X-Sequence-Number: 22560 > 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/