Re: Best way to limit database sizes - Mailing list pgsql-admin

From Tino Schwarze
Subject Re: Best way to limit database sizes
Date
Msg-id 20080703191736.GB24555@easy2.in-chemnitz.de
Whole thread Raw
In response to Re: Best way to limit database sizes  (Dimitri Fontaine <dfontaine@hi-media.com>)
Responses Re: Best way to limit database sizes  (Dev <dev_hyd2001@yahoo.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Best way to limit database sizes
Next
From: Carol Walter
Date:
Subject: Who's attached to the database?