From: | Bill Moran <wmoran(at)potentialtech(dot)com> |
---|---|
To: | Hervé Piedvache <herve(at)elma(dot)fr> |
Cc: | Postgresql Performance <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: One or more processor ? |
Date: | 2003-10-10 16:42:04 |
Message-ID: | 3F86E15C.1010309@potentialtech.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Hervé Piedvache wrote:
> Hi,
>
> A simple question about PostgreSQL ... I have a Pentium Xeon Quadri processors
> ...
> If I do a SQL request ... does PostgreSQL use one or more processor ?
PostgreSQL uses one processor per connection. If you have 4 simultaneous
connections, you'll use all four processors (assuming your operating system
is properly designed/configured).
> And if it use only one ... why ?
> Could you explain me this ;o)
The answer to that is beyond my knowledge, but I have a few guesses:
1) Doing so is more complicated than you think.
2) The code was originally written for uniprocessor machines, and nobody
has volunteered to update it yet.
3) kernel threading isn't as predictable as some people would like to
think, thus they developers have avoided using it so far.
4) It simply isn't practical to expect a single query to
execute on multiple processors simultaneously.
Do you know of any RDBMS that actually will execute a single query on
multiple processors?
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
From | Date | Subject | |
---|---|---|---|
Next Message | greg | 2003-10-10 16:44:21 | Re: Compare rows |
Previous Message | Dennis Bjorklund | 2003-10-10 16:38:46 | Re: One or more processor ? |