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

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Luki Rustianto <lukirus(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a way to limit CPU usage per user
Date: 2006-02-08 21:42:42
Message-ID: b42b73150602081342w6e1add1o1dfb8c32345e1a14@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Is there a way to limit user's CPU resource specially on "SELECT" query ?
>
> I hava a table with a lot of rows inside, if one sloopy DB users do a
> "SELECT * FROM bigtable"
> then CPU resource will go near 99% and this action will surely affect
> the other database performance ...
>
Yes, the answer is not to write the query in the first place :-). you
can implement cursors, do client side browsing, or other techiniques
to handle this problem more elegantly.

try to follow rule of thumb to return minimal amount of data necessary
to the client.

Merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rodolfo Campos 2006-02-08 21:59:19 Insert into other database
Previous Message Dave Page 2006-02-08 20:59:43 Re: Create a new database from JDBC?