X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id AC80CD1B513 for ; Fri, 10 Oct 2003 15:35:59 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 38044-06 for ; Fri, 10 Oct 2003 12:35:13 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 11D54D1B502 for ; Fri, 10 Oct 2003 12:35:07 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h9AFXfGQ018359; Fri, 10 Oct 2003 09:33:41 -0600 (MDT) Date: Fri, 10 Oct 2003 09:24:33 -0600 (MDT) From: "scott.marlowe" To: Rudi Starcevic Cc: Subject: Re: limit the database size In-Reply-To: <3F85F395.1020408@oasis.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/117 X-Sequence-Number: 10678 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) >