Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 52B0C9FBF67 for ; Tue, 8 May 2007 17:51:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 65500-03 for ; Tue, 8 May 2007 17:51:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 0443B9FBF11 for ; Tue, 8 May 2007 17:51:22 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1HlWeW-0007AE-5m for pgsql-performance@postgresql.org; Tue, 08 May 2007 22:51:20 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1HlWeW-00025E-00 for ; Tue, 08 May 2007 22:51:20 +0200 Date: Tue, 8 May 2007 22:51:20 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: Throttling PostgreSQL's CPU usage Message-ID: <20070508205120.GA7983@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.20.4 on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/140 X-Sequence-Number: 24530 On Tue, May 08, 2007 at 04:27:10PM -0400, Daniel Griscom wrote: > 3: ... some other solution I haven't thought of. On a wild guess, could you try setting the CPU costs higher, to make the planner choose a less CPU-intensive plan? Other (weird) suggestions would include calling a user-defined function that sleep()ed for you between every row. Or use a dual-core system. :-) /* Steinar */ -- Homepage: http://www.sesse.net/