Re: postgresql user quota - Mailing list pgsql-admin

From Karel Zak
Subject Re: postgresql user quota
Date
Msg-id Pine.LNX.3.96.1000718101609.32423B-100000@ara.zf.jcu.cz
Whole thread Raw
In response to postgresql user quota  ("Sandro Serafini" <s.serafini@iam.it>)
Responses Re: postgresql user quota
List pgsql-admin
On Tue, 18 Jul 2000, Sandro Serafini wrote:

> Hi!
>
> I need to limit the postgresql user's quotas on my system...
>
> I noticed that postgres creates a new directory for every database, so I tried
> changing the owner of the directory and the files within the directory to the
> unix user "owner" of the database, setting the group so the postgres daemon
> works.
>
> All works correctly, the postgres user is subject to the system quota and when
> a user inserts too much data inside his tables, the system gives him an error.
>
> BUT... there's a problem... when the postmaster creates new files (for
> example, creating a new table), the new files fall into user "postgres" and
> not the user owning the database.

 Yes, because all backends works under postmaster that has "postgres"
OS privilage, but for switch between different OS users software need
"root" privilage (this concept use for example apache - master process
has "root" perms and children has some others). It is not possible in PG.

 And don't forget some_postgresSQL_user != OS_user.

 For you problem has commercial DB something like tablespace and quota for
users, but all these are *internal* in a DB and DB not use OS quota.

                        Karel


pgsql-admin by date:

Previous
From: "Sandro Serafini"
Date:
Subject: postgresql user quota
Next
From: "Sandro Serafini"
Date:
Subject: Re: postgresql user quota