From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | "pronix pronix" <pronix(dot)service(at)gmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: how i can restrict databaseusers ? |
Date: | 2008-05-20 17:38:38 |
Message-ID: | dcc563d10805201038v2dade65cg306824a8377df295@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Tue, May 20, 2008 at 7:57 AM, pronix pronix <pronix(dot)service(at)gmail(dot)com> wrote:
> hello
> how i can restrict dbusers ( user's db size, cpu time)?
> how i can monitoring this parameters
You can create table spaces for each user, and then create a db or
schema or whatnot in that tablespace. If each tablespace is on a
partition that is limited to some size, then you've limited the user's
space. You don't get the more fine grained quotas that dbs like
Oracle provide, but then again, since you're not spending $250,000 a
year licensing postgresql, I guess you can buy a lot more space for
the users to play in if they all share the same db.
As for CPU time, there's really not restriction by user capability in
postgresql at this time.
To monitor it you can turn on stats collection and track what
statements are using up the most CPU by pid.
From | Date | Subject | |
---|---|---|---|
Next Message | kevin kempter | 2008-05-20 18:14:26 | insert a -1 into a bigint ? |
Previous Message | Andrew Sullivan | 2008-05-20 15:38:32 | Re: character varying exceeded |