Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 739A49FB5EF for ; Wed, 9 May 2007 01:10:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 87693-05 for ; Wed, 9 May 2007 01:10:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from exprod6og52.obsmtp.com (exprod6og52.obsmtp.com [64.18.1.185]) by postgresql.org (Postfix) with SMTP id 1D6A59FB5E1 for ; Wed, 9 May 2007 01:10:22 -0300 (ADT) Received: from source ([63.240.6.47]) (using TLSv1) by exprod6ob52.postini.com ([64.18.5.12]) with SMTP; Tue, 08 May 2007 21:10:06 PDT Received: from 172.16.1.23 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Wed, 09 May 2007 00:10:01 -0400 X-Server-Uuid: 0764DD54-627B-4C45-B37D-789FBDEDA467 Received: from MI8NYCMAIL08.Mi8.com ([172.16.1.164]) by d01smtp09.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 9 May 2007 00:10:01 -0400 Received: from 24.23.197.133 ([24.23.197.133]) by MI8NYCMAIL08.Mi8.com ( [172.16.1.190]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.118]) with Microsoft Exchange Server HTTP-DAV ; Wed, 9 May 2007 04:10:00 +0000 User-Agent: Microsoft-Entourage/11.3.3.061214 Date: Tue, 08 May 2007 21:09:59 -0700 Subject: Re: Throttling PostgreSQL's CPU usage From: "Luke Lonergan" To: david@lang.hm, "Carlos Moreno" , "Mark Kirkwood" cc: "Daniel Griscom" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Throttling PostgreSQL's CPU usage Thread-Index: AceR7+ipJ4T6Sv3jEdu4PQAX8s8Cag== In-Reply-To: MIME-Version: 1.0 X-OriginalArrivalTime: 09 May 2007 04:10:01.0568 (UTC) FILETIME=[EA319E00:01C791EF] X-WSS-ID: 6A5F96133F818549-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/171 X-Sequence-Number: 24561 You can use the workload management feature that we've contributed to Bizgres. That allows you to control the level of statement concurrency by establishing queues and associating them with roles. That would provide the control you are seeking. - Luke On 5/8/07 4:24 PM, "david@lang.hm" wrote: > On Tue, 8 May 2007, Carlos Moreno wrote: > >> Daniel Griscom wrote: >>> >>> Several people have mentioned having multiple processors; my current >>> machine is a uni-processor machine, but I believe we could spec the actual >>> runtime machine to have multiple processors/cores. >> >> My estimate is that yes, you should definitely consider that. >> >>> I'm only running one query at a time; would that query be guaranteed to >>> confine itself to a single processor/core? >> >> From what Joshua mentions, looks like you do have that guarantee. > > isn't there a way to limit how many processes postgres will create? > > if this is limited to 1, what happens when a vaccum run hits (or > autovaccum) > > David Lang > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >