Re: Priorities for users or queries? - Mailing list pgsql-general

From Magnus Hagander
Subject Re: Priorities for users or queries?
Date
Msg-id 45CEE33B.8020303@hagander.net
Whole thread Raw
In response to Re: Priorities for users or queries?  ("Adam Rich" <adam.r@sbcglobal.net>)
Responses Re: Priorities for users or queries?  (Benjamin Arai <benjamin@araisoft.com>)
Re: Priorities for users or queries?  (Ron Mayer <rm_pg@cheapcomplexdevices.com>)
List pgsql-general
Most likely, you do not want to do this. You *can* do it, but you are
quite likely to suffer from priority inversion
(http://en.wikipedia.org/wiki/Priority_inversion)

//Magnus


Adam Rich wrote:
> There is a function pg_backend_pid() that will return the PID for
> the current session.  You could call this from your updating app
> to get a pid to feed to the NICE command.
>
>
> -----Original Message-----
> From: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Benjamin Arai
> Sent: Saturday, February 10, 2007 6:56 PM
> To: pgsql-general@postgresql.org; pgsql-admin@postgresql.org
> Subject: [GENERAL] Priorities for users or queries?
>
>
> Hi,
>
> Is there a way to give priorities to queries or users?  Something
> similar to NICE in Linux.  My goal is to give the updating (backend)
> application a very low priority and give the web application a high
> priority to avoid disturbing the user experience.
>
> Thanks in advance!
>
> Benjamin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq


pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: [ADMIN] Priorities for users or queries?
Next
From: Arturo Perez
Date:
Subject: Re: Adding TEXT columns tanks performance?