low priority postmaster threads?

From: Chris Storah <cstorah(at)emis-support(dot)demon(dot)co(dot)uk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: low priority postmaster threads?
Date: 2001-02-21 15:34:20
Message-ID: C05E7DA1218ED411BF8A00105AC95A8E017AF32F@SV-CNTRMAIL
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there any way in psql to connect to a database and reduce the run
priority of the child thread it kicks off ?
i.e. equivalent of 'nice' on the thread?

From first looks at the code, it seems to fork off the process and there is
a pid that can be niced.
If an extra run level parameter is passed in to the PQExec interface
(defaulted for compatibility with older code), would it work?

This assumes that there isn't already a mechanism to reduce the priority of
specific queries.

What I am looking for is a postgres system that runs 100 users or so at
'full speed', and major day long queries at a 'when idle' priority.

Cheers,
Chris

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2001-02-21 15:42:20 Re: Encoding names
Previous Message Hiroshi Inoue 2001-02-21 15:21:46 RE: Re: [ADMIN] v7.1b4 bad performance