Parallel Query Processing

Started by aravind chanduabout 17 years ago2 messagesgeneral
Jump to latest
#1aravind chandu
avin_friends@yahoo.com

Thanks for your reply guys.My aim is to run multiple queries.Will joins come under multiple queries? or it just mean two or more different queries like one select statement and another select statement? Does postgresql itself supports to run multiple queries or we have to use pgpool-II tool?

________________________________
From: Scott Marlowe <scott.marlowe@gmail.com>
To: aravind chandu <avin_friends@yahoo.com>
Cc: postgresql Forums <pgsql-general@postgresql.org>
Sent: Wednesday, March 25, 2009 4:52:43 PM
Subject: Re: [GENERAL] Parallel Query Processing

On Wed, Mar 25, 2009 at 2:24 PM, aravind chandu <avin_friends@yahoo.com> wrote:

Hello,

I have a few questions related to the parallel query
processing.Can you guys tell me how to implement parallel query processing
in postgresql database.

Do you mean one query being parallelized, or multiple queries running at once?

PostgreSQL provides no capability to parallelize one query into
multiple processes.

Multiple Queries run in parallel automatically
Hello,

In reply to: aravind chandu (#1)
Re: Parallel Query Processing

On 30/03/2009 07:18, aravind chandu wrote:

Thanks for your reply guys.My aim is to run multiple queries.Will
joins come under multiple queries? or it just mean two or more

Not sure what you're getting at here....a query that includes a JOIN is
still one query.

different queries like one select statement and another select
statement? Does postgresql itself supports to run multiple queries or
we have to use pgpool-II tool?

PostgreSQL spawns a new process for each connection, and runs these in
parallel. Within each connection, a client can run as many queries as it
likes; and these are going on at the same time as queries in other
connections.

You should read the part of the docs that talks about MVCC to understand
how each process sees its own snapshot of the data.

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------