Re: Prioritizing queries - Mailing list pgsql-general

From Steve Atkins
Subject Re: Prioritizing queries
Date
Msg-id 20040921210426.GB28826@gp.word-to-the-wise.com
Whole thread Raw
In response to Prioritizing queries  (Christopher Petrilli <petrilli@gmail.com>)
Responses Re: Prioritizing queries  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-general
On Tue, Sep 21, 2004 at 04:24:21PM -0400, Christopher Petrilli wrote:
> Has anyone investigated having either high, or low urgency queries? A
> system I'm working on has a constant inflow of data, which has some
> queries gainst it which might require long sequential scans. I'm not
> that worried about how long those queries take, just that they don't
> interfere with other insertions.
>
> This is a bit DSSish, I guess, but I would think it could be managed
> by nicing processes?

I'd like this feature on some boxes that are being pushed a bit too
close to the limit for comfort.

I've played around with some of the crude ways of doing it. Disk I/O
tends to be the resource that's limited, and process niceness won't
affect that. You'd need to do something like explicitly do a nanosleep
for every X blocks read in by a query or somesuch. Perhaps a
generalization of the vacuum-sleep hack.

Cheers,
  Steve

pgsql-general by date:

Previous
From: Thomas F.O'Connell
Date:
Subject: Re: the current scoop on ilike and indexes
Next
From: Kevin Murphy
Date:
Subject: Re: the current scoop on ilike and indexes