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 344C1D1B50F for ; Thu, 9 Oct 2003 23:42:21 +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 61239-06 for ; Thu, 9 Oct 2003 20:41:35 -0300 (ADT) Received: from water.oasis.net.au (water.oasis.net.au [210.8.139.2]) by svr1.postgresql.org (Postfix) with ESMTP id 420FAD1B4EA for ; Thu, 9 Oct 2003 20:41:30 -0300 (ADT) Received: from oasis.net.au (guardian [210.8.139.5]) by water.oasis.net.au (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id KAA23932 for ; Fri, 10 Oct 2003 10:09:33 +1000 X-Authentication-Warning: water.oasis.net.au: Host guardian [210.8.139.5] claimed to be oasis.net.au Message-ID: <3F85F395.1020408@oasis.net.au> Date: Fri, 10 Oct 2003 09:47:33 +1000 From: Rudi Starcevic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: limit the database size References: <008401c38ebc$ffc1c270$da17040a@lothar> In-Reply-To: <008401c38ebc$ffc1c270$da17040a@lothar> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/105 X-Sequence-Number: 10666 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, >