pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonah H. Harris <jonah.harris@gmail.com>
To: henk de wit <henk53602@hotmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Utilizing multiple cores for one query
Date: Sat, 1 Dec 2007 08:31:13 -0500
Message-ID: <36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com> (raw)
In-Reply-To: <BAY124-W312F15BBE3D85AE1D472F8F5720@phx.gbl>
References: <BAY124-W312F15BBE3D85AE1D472F8F5720@phx.gbl>

On Dec 1, 2007 8:21 AM, henk de wit <henk53602@hotmail.com> 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/



view thread (7+ messages)  latest in thread

Message-ID: <36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com>
Permalink:  ../36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com/
Also on:    postgresql.org/message-id/36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: jonah.harris@gmail.com, henk53602@hotmail.com
  Subject: Re: Utilizing multiple cores for one query
  In-Reply-To: <36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com>
  References: <BAY124-W312F15BBE3D85AE1D472F8F5720@phx.gbl> <36e682920712010531k47871797ge19ceaddad9a7ff6@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox