From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: Query Priority
Date: Fri, 2 May 2003 10:05:44 -0400
Message-ID: <20030502140543.GA13419@libertyrms.info> (raw)
In-Reply-To: <Pine.LNX.4.44.0305021349580.6771-100000@RedDragon.Childs>
References: <Pine.LNX.4.44.0305021349580.6771-100000@RedDragon.Childs>
On Fri, May 02, 2003 at 01:55:01PM +0100, Peter Childs wrote:
> Is there some way to give some postgres backends higher priority.
> Hence on a very busy server "important" queries get done faster than less
> priority that unimportant queries.
No.
> I don't think this would be too difficult to do as certainly on
> Linux the process could just be reniced and the os left to figure it out.
> of course any query that is holding up another query with locks needs to
> get done quickly.
It's the latter condition that causes the problem for the nice-ing
(among other things -- there's plenty of discussion about this in the
archives. Tom Lane gave a quite long explanation one time, but I
can't find it right now.)
> I find my self with a database thats slowed to a craw because of a
> slow batch program it not letting the gui clients the speed they require
> to be usable.
Sounds like what you really need is a replica database which you can
use for batch reports, &c. You could do this with a small-ish box,
because you'd only have one client.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: andrew@libertyrms.info
Subject: Re: Query Priority
In-Reply-To: <20030502140543.GA13419@libertyrms.info>
References: <Pine.LNX.4.44.0305021349580.6771-100000@RedDragon.Childs> <20030502140543.GA13419@libertyrms.info>
* 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