pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Doug McNaught <doug@mcnaught.org>
To: pgsql-performance@postgresql.org
Subject: Re: Postgresql on Quad CPU machine
Date: Sun, 11 Jan 2004 11:07:25 -0500
Message-ID: <87wu7y5v0i.fsf@asmodeus.mcnaught.org> (raw)
References: <40017182.1090801@lorenso.com>

"D. Dante Lorenso" <dante@lorenso.com> writes:

> I'm running PostgreSQL 7.4 on a quad Xeon attached to a
> beefy disk array.  However, I am begining to wonder if this is
> a waste of CPU power.
>
> I think I read somewhere that PostgreSQL is NOT multi-threaded.
> But, will it be able to take advantage of multiple CPUs?  Will
> I have to run separate postmaster instances to get the advantage?

PG uses a separate backend process for each connection, so if you have
multiple simultaneous connections they will use different CPUs.
Single queries will not be split across CPUs.

-Doug




view thread (2+ messages)

Message-ID: <87wu7y5v0i.fsf@asmodeus.mcnaught.org>
Permalink:  ../87wu7y5v0i.fsf@asmodeus.mcnaught.org/
Also on:    postgresql.org/message-id/87wu7y5v0i.fsf@asmodeus.mcnaught.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: doug@mcnaught.org
  Subject: Re: Postgresql on Quad CPU machine
  In-Reply-To: <87wu7y5v0i.fsf@asmodeus.mcnaught.org>

* 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