Re: Why is it not using the other processor?

From: jdassen(at)cistron(dot)nl (J(dot)H(dot)M(dot) Dassen (Ray))
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Why is it not using the other processor?
Date: 2001-07-05 19:19:41
Message-ID: slrn9k9fed.gj4.jdassen@odin.cistron-office.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Linh Luong <linh(dot)luong(at)computalog(dot)com> wrote:
> My postgres is running on a dual processor. But when I run a query and
> look at TOP and notice only one processor is being used. And it is
> being used 100% (assuming only 1 process is active).

PostgreSQL does not use threads; there is just one backend process per
session/connection. So if there is only one session connected, only one
backend process will be active, and only one processor will be used. Your
second processor will be used as soon as there is more than one session
connected.

HTH,
Ray
--
<GRub[B]eR> JHM, jij bent echt nerd :))
<GRub[B]eR> maar wel een goeie :)
<GRub[B]eR> Soort van programmerende furby
Gezien op #cistron

In response to

Browse pgsql-general by date

  From Date Subject
Next Message J.H.M. Dassen Ray 2001-07-05 19:24:57 Re: Red Hat to support PostgreSQL
Previous Message Jan Wieck 2001-07-05 19:00:59 Re: pgsql and sql-relay