Re: Quotas on databases

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Tressens Lionel" <tressens(at)etud(dot)insa-tlse(dot)fr>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Quotas on databases
Date: 2001-02-07 19:45:41
Message-ID: 008001c0913e$8f73ba60$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: "Tressens Lionel" <tressens(at)etud(dot)insa-tlse(dot)fr>

> Is it possible to set quotas for each user of my DBMS ?
>
> I run a web server and I gave the users the opportunity to have a personal
> database for their homepage but I don't want them to put large objects
> such as files in the DBMS, so I want to apply quotas.
>
> Thanks in advance for your help.

Databases are owned by the default user/group (postgres) - however, you can
do a chgrp -R on the relevant database directory after creation and
everything carries on working. You might need to play around setting the
group sticky bit to make sure new tables have the right group.

What happens when you reach the group quota and can't write to the DB any
more I wouldn't like to speculate. Might not be pleasant, so you'll want to
try it.

- Richard Huxton

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2001-02-07 19:56:09 Re: Trouble with views (7.1beta4 Debian) and PgAccess 0.98.7.
Previous Message Oliver Elphick 2001-02-07 19:14:26 Debian packages of PostgreSQL 7.1beta4 - version 3