Restricting schema sizes - Mailing list pgsql-admin

From Kieren Scott
Subject Restricting schema sizes
Date
Msg-id BAY149-w53D2CD9EDFAFED3996BF3EAE590@phx.gbl
Whole thread Raw
Responses Re: Restricting schema sizes
Re: Restricting schema sizes
List pgsql-admin
Hi,

What is the best way to restrict/limit the size that a schema can grow too in Postgresql?

If I want to have a scratchpad area within my database to allow users to create tables,
how can I control the size of the objects they can create?

Would I have to create a dedicated filesystem and then create a tablespace on that
filesystem. Users could then create objects in that tablespace until they fill the filesystem.

Is there a setting in Postgresql whereby I can allocate a quota of space within a
tablespace for each schema?

The other option I can think of is writing a script that monitors the size of the objects
within a schema. The danger here is that a user could potentially create a huge table
as a result of a bad query (cartesian join etc) and fill the application tablespace / filesystem.

Many thanks.

pgsql-admin by date:

Previous
From: Joe Brenner
Date:
Subject: Re: pg_ident.conf not working?
Next
From: Gabriele Bartolini
Date:
Subject: Re: virtual ip's for Pg host