X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8C74C53487 for ; Mon, 28 Mar 2005 22:05:59 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78869-10 for ; Mon, 28 Mar 2005 21:05:58 +0000 (GMT) Received: from flake.decibel.org (natpool.bovine.net [67.100.216.14]) by svr1.postgresql.org (Postfix) with ESMTP id 389905322E for ; Mon, 28 Mar 2005 22:05:57 +0100 (BST) Received: by flake.decibel.org (Postfix, from userid 1001) id 9D40B1548D; Mon, 28 Mar 2005 15:05:59 -0600 (CST) Date: Mon, 28 Mar 2005 15:05:59 -0600 From: "Jim C. Nasby" To: matt@followers.net Cc: pgsql-performance@postgresql.org Subject: Re: Preventing query from hogging server Message-ID: <20050328210559.GC51784@decibel.org> References: <42431001.36c6643c.1b4b.ffffd505@mx.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42431001.36c6643c.1b4b.ffffd505@mx.gmail.com> X-Operating-System: FreeBSD 4.11-RELEASE i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/613 X-Sequence-Number: 11318 On Thu, Mar 24, 2005 at 01:07:39PM -0600, Matthew Nuzum wrote: > I've tried `nice psql` in the past and I don't think that had much impact, > but I haven't tried it on this query. On linux, nice will only help if the query is CPU-bound. On FreeBSD, nice affects I/O scheduling, as well as CPU, so it's a more effective means of limiting the impact of large queries. I don't know how other OS's handle this. -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"