Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 9D8C72E00B0 for ; Sat, 1 Dec 2007 09:31:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 03184-09 for ; Sat, 1 Dec 2007 09:31:08 -0400 (AST) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by postgresql.org (Postfix) with ESMTP id 4A7752E0083 for ; Sat, 1 Dec 2007 09:31:15 -0400 (AST) Received: by rv-out-0910.google.com with SMTP id l15so2275415rvb for ; Sat, 01 Dec 2007 05:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ZSVEG+/GuDupPLGx+7rk9oOsBM+HIH9i6ZhhwnR3IWM=; b=HFJ7Mgtp1ql/BPoVoid6iTUXVB3UrTR0Ls1FFm3MVn/hGYsviQ2t2HIKX6O87K/Ex5hmhJoAcU8Iv/4ICNgiySR8MVgBoWQYIuQKjX0//yoLSxqmGdtxsxkjSG9IxbLoAUrJ8fbgk9sMnvHNGPSJph6OfydaWDfE35lFz2wvKpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EB647mHhhbS02UGGqgfXS8GXG9a0TaDgvvpwfI7PGALTc44eIBs/uAhz7Mv17dMsFGndNIfPllzDeAimSdBYyyTyaE+Nb1KOl/qVfFVWmdrHf+gkXs8qjN/Om1kvAm7iHdRbi5bFAMs1xpdz3+oO2lawLheNOXkQ29YRDKPC6aY= Received: by 10.142.50.15 with SMTP id x15mr580271wfx.1196515873851; Sat, 01 Dec 2007 05:31:13 -0800 (PST) Received: by 10.143.19.7 with HTTP; Sat, 1 Dec 2007 05:31:13 -0800 (PST) Message-ID: <36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com> Date: Sat, 1 Dec 2007 08:31:13 -0500 From: "Jonah H. Harris" To: "henk de wit" Subject: Re: Utilizing multiple cores for one query Cc: "pgsql-performance@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/2 X-Sequence-Number: 27818 On Dec 1, 2007 8:21 AM, henk de wit wrote: > I wonder whether the current versions of postgres (i.e. either 8.2 or 8.3) > are able to utilize multiple cores for the execution of a single query? Nope. > This is one thing that systems like SQL Server and Oracle have been able to > do for quite some time. I haven't seen much in the documentation that hints > that this may be possible in PG, nor did I find much in the mailinglists > about this. The only thing I found was a topic that discussed some patches > that may eventually lead to a sequence scan being handled by multiple cores. I believe the threads you're talking about were related to scanning, not parallel query. Though, when Qingqing and I were discussing parallel query a little over a year ago, I do seem to recall several uninformed opinions stating that sequential scans were the only thing it could be useful for. > Could someone shed some light on the current or future abilities of PG for > making use of multiple cores to execute a single query? Currently, the only way to parallelize a query in Postgres is to use pgpool-II. http://pgpool.projects.postgresql.org/ -- Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324 EnterpriseDB Corporation | fax: 732.331.1301 499 Thornall Street, 2nd Floor | jonah.harris@enterprisedb.com Edison, NJ 08837 | http://www.enterprisedb.com/