low priority postmaster threads? - Mailing list pgsql-hackers

From Chris Storah
Subject low priority postmaster threads?
Date
Msg-id C05E7DA1218ED411BF8A00105AC95A8E017AF32F@SV-CNTRMAIL
Whole thread Raw
Responses Re: low priority postmaster threads?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: floating point representation
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: Re: [ADMIN] v7.1b4 bad performance