Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8F5F0650EBF for ; Thu, 3 Jul 2008 16:18:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22656-01-2 for ; Thu, 3 Jul 2008 16:18:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from easy2.in-chemnitz.de (easy2.in-chemnitz.de [88.198.17.232]) by postgresql.org (Postfix) with ESMTP id B8CD5650F5C for ; Thu, 3 Jul 2008 16:17:38 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by easy2.in-chemnitz.de (Postfix) with ESMTP id 708E647001B for ; Thu, 3 Jul 2008 21:17:36 +0200 (CEST) Received: from easy2.in-chemnitz.de ([127.0.0.1]) by localhost (easy.in-chemnitz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wd4zcXqO61Gw for ; Thu, 3 Jul 2008 21:17:36 +0200 (CEST) Received: by easy2.in-chemnitz.de (Postfix, from userid 1013) id 5ED25470012; Thu, 3 Jul 2008 21:17:36 +0200 (CEST) Date: Thu, 3 Jul 2008 21:17:36 +0200 From: Tino Schwarze To: pgsql-admin@postgresql.org Subject: Re: Best way to limit database sizes Message-ID: <20080703191736.GB24555@easy2.in-chemnitz.de> References: <619537.42270.qm@web53708.mail.re2.yahoo.com> <08A677B0-4BE9-4F75-83F2-410DE6F360C3@hi-media.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <08A677B0-4BE9-4F75-83F2-410DE6F360C3@hi-media.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/48 X-Sequence-Number: 29658 On Thu, Jul 03, 2008 at 09:10:47PM +0200, Dimitri Fontaine wrote: > >I've considered creating a tablespace in a directory owned by the > >user , so I can use Linux quotas to prevent higher disk usage , but > >this turned out be a bad thought, as all the files are anyway owned > >by the postgres user and so disk quotas won't have any effect. > > What if you put each tablespace on a LVM partition of a control sized, > extensible? This is a desaster waiting to happen. I'd say never let a database get out of disk space. Rather implement soft limits like regular cron jobs and make them pay for overusage. Also note that DB size on disk and amount of data stored in DB might be a lot different because of bloating issues, indices etc. Tino..oO(But LVM/tablespace should work.) -- "What we nourish flourishes." - "Was wir nähren erblüht." www.craniosacralzentrum.de www.forteego.de