Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 61C789FA206 for ; Thu, 6 Sep 2007 10:47:04 -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 99238-03 for ; Thu, 6 Sep 2007 10:46:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id 043059F9EAB for ; Thu, 6 Sep 2007 10:46:59 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 06 Sep 2007 08:46:58 -0500 Message-Id: <46DFBE70.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.2 Date: Thu, 06 Sep 2007 08:46:40 -0500 From: "Kevin Grittner" To: , "Thomas Finneid" Subject: Re: utilising multi-cpu/core machines? References: <46DF3082.7040301@ifi.uio.no> In-Reply-To: <46DF3082.7040301@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/78 X-Sequence-Number: 26623 >>> On Wed, Sep 5, 2007 at 5:41 PM, in message <46DF3082.7040301@ifi.uio.n= o>, Thomas Finneid wrote:=20 > how does pg utilise multi cpus/cores, i.e. does it use more than one=20 > core? and possibly, how, are there any documentation about this. =20 For portability reasons PostgreSQL doesn't use threads, per se, but spawns a new process for each connection, and a few for other purposes. Each process may be running on a separate CPU, but a single connection will only be using one -- directly, anyway. (The OS may well be using the other for I/O, etc.) =20 For documentation, you could start with this: =20 http://www.postgresql.org/docs/8.2/interactive/app-postgres.html =20 -Kevin =20