Re: Is there a way to limit CPU usage per user - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Is there a way to limit CPU usage per user
Date
Msg-id b42b73150602081342w6e1add1o1dfb8c32345e1a14@mail.gmail.com
Whole thread Raw
In response to Is there a way to limit CPU usage per user  (Luki Rustianto <lukirus@gmail.com>)
Responses Re: Is there a way to limit CPU usage per user  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: Is there a way to limit CPU usage per user  (Luki Rustianto <lukirus@gmail.com>)
List 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

pgsql-general by date:

Previous
From: Dave Page
Date:
Subject: Re: Create a new database from JDBC?
Next
From: Rodolfo Campos
Date:
Subject: Insert into other database