Re: User Quota Implementation

From: "Jonah H(dot) Harris" <jharris(at)tvi(dot)edu>
To: James Robinson <jlrobins(at)socialserve(dot)com>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: User Quota Implementation
Date: 2004-07-09 16:45:50
Message-ID: 40EECBBE.5030901@tvi.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


James Robinson wrote:
>
> On Jul 9, 2004, at 12:04 PM, Jonah H. Harris wrote:
>
>>
>>
>> - Quota acts on any object owned by the user. Is this adequate for
>> everyone?
>
>
> Does changing owner also trigger new quota calculations on both the new
> and old owner?
>

Quota calculations are performed per-owner at commit time. As only a
superuser can perform an ALTER TABLE OWNER, my implementation allows
quotas to be handled automatically at run-time for the current-owner.
Therefore, there is no need to perform new calculations for each user.
I'm still testing large objects.

>> Is there any additional functionality you would like to see in a quota
>> implementation?
>
>
> Quotas per user per tablespace, assuming 7.5 gets tablespaces.

I agree.

>
> User quotas would make postgres on a shared university box much more
> pleasant.

Oh yeah! Our college is using PostgreSQL for student user accounts,
which is why I originally implemented this :).

> ----
> James Robinson
> Socialserve.com
>

--
Jonah H. Harris, UNIX Administrator | phone: 505.224.4814
Albuquerque TVI | fax: 505.224.3014
525 Buena Vista SE | jharris(at)tvi(dot)edu
Albuquerque, New Mexico 87106 | http://w3.tvi.edu/~jharris/

"All great truths begin as blasphemies."
-- George Bernard Shaw

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2004-07-09 16:50:21 Re: User Quota Implementation
Previous Message Stephen Frost 2004-07-09 16:44:39 Re: User Quota Implementation