Re: Is there a way to limit CPU usage per user

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tony Wasson <ajwasson(at)gmail(dot)com>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, Luki Rustianto <lukirus(at)gmail(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a way to limit CPU usage per user
Date: 2006-02-10 16:04:52
Message-ID: 19899.1139587492@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tony Wasson <ajwasson(at)gmail(dot)com> writes:
> I am also interested in being able to terminate *certain* long running
> queries. I didn't want to use statement_timeout because there are some
> queries that must run for a long time - in our case some queries that
> create summary tables. Other long running queries should be killed.

You do know that statement_timeout can be changed freely via SET,
right? One way to attack this would be for the clients that are
issuing known long-running queries to do "SET statement_timeout"
to boost up their allowed runtime.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2006-02-10 16:10:59 Re: Is there a way to limit CPU usage per user
Previous Message Scott Marlowe 2006-02-10 16:01:44 Re: Is there a way to limit CPU usage per user