Re: Load balancing lots of simultaneous clients or queries? - Mailing list pgsql-general

From Richard Huxton
Subject Re: Load balancing lots of simultaneous clients or queries?
Date
Msg-id 00db01c0e29d$1fb6f240$1001a8c0@archonet.com
Whole thread Raw
In response to Load balancing lots of simultaneous clients or queries?  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
List pgsql-general
From: "Dirk Lutzebaeck" <lutzeb@aeccom.com>

> It would be nice if a client could say: hey I know I have a large task
> / query please set me to a low priority. So the server would withdraw some
> cpu and io cycles from this task.
>
> On a per process basis one would do this with 'nice' but how could
> that be applied to the postmaster/postgres mechanism?

> Something like SET PRIORITY...
>
> Any comments?

Problem I can see is when you have interdependent transactions. If task A
takes longer to commit it could hold up everyone waiting on it.

On the other hand - I can see where you're coming from for large selects
(weekly summary reports - that sort of thing).

- Richard Huxton


pgsql-general by date:

Previous
From: Dirk Lutzebaeck
Date:
Subject: Load balancing lots of simultaneous clients or queries?
Next
From: Ludovico Romano
Date:
Subject: how to convert Access to PG unless odbc driver(with sql file)