pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Rudi Starcevic <rudi@oasis.net.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: limit the database size
Date: Fri, 10 Oct 2003 09:24:33 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0310100923530.18902-100000@css120.ihs.com> (raw)
In-Reply-To: <3F85F395.1020408@oasis.net.au>

There's also the initlocation $ENVAR solution:

http://www.postgresql.org/docs/7.3/static/manage-ag-alternate-locs.html

On Fri, 10 Oct 2003, Rudi Starcevic wrote:

> Hi Wim,
> 
> It is possible to compile PostgreSQL so that it can keep each users 
> database in their home dir. ( or another dir. of your choice. )
> Then you can put a quota on the user's home dir.
> 
> To do this the only way I know is to compile from source.
> It was about 2 years ago I did this last so I've forgetten the compile 
> flags which you need
> to pass in to 'configure' or 'make'.
> 
> You'll need to search the online installation docs or perhaps someone on 
> this list can point
> out the required C flags.
> 
> I found this method works very well.
> For Mysql we had to write scripts which regularly checked quota's and 
> disk size which was
> no where need as elegent at PostgreSQL.
> 
> Hope this helps
> Cheers
> Rudi.
> 
> Wim Bertels wrote:
> 
> > Ola,
> >  
> > is it possible to limit the database size,
> > ie like for example i create a database and then limit somehow the 
> > maximum database size.
> >  
> > scripts for arranging this?
> >  
> > tnx,
> >  
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 




view thread (10+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0310100923530.18902-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0310100923530.18902-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0310100923530.18902-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@ihs.com, rudi@oasis.net.au
  Subject: Re: limit the database size
  In-Reply-To: <Pine.LNX.4.33.0310100923530.18902-100000@css120.ihs.com>
  References: <3F85F395.1020408@oasis.net.au> <Pine.LNX.4.33.0310100923530.18902-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox