Re: Parallel Query Processing

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: aravind chandu <avin_friends(at)yahoo(dot)com>
Cc: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: Parallel Query Processing
Date: 2009-03-30 12:02:59
Message-ID: 49D0B4F3.8040309@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2009-03-30 12:06:27 Re: New shapshot RPMs (Mar 27, 2009) are ready for testing
Previous Message Martin Pitt 2009-03-30 11:21:32 Re: [Pkg-postgresql-public] debian package 8.4devel was: Postgres major version support policy on Debian