pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Daniel Rubio <drubior@tinet.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Limiting database size ...
Date: 26 Feb 2003 13:21:11 -0500
Message-ID: <1046283671.1015.498.camel@camel> (raw)
In-Reply-To: <3E5CA9CD.40700@tinet.org>
References: <3E5CA9CD.40700@tinet.org>



On Wed, 2003-02-26 at 06:49, Daniel Rubio wrote:
> Hi!
> 
> I'm working on an ISP, and we're testing Postgres to offer Database 
> Services to our clients.
> 
> We like to limit the maximum database size for each client (1 database 
> for client), but as far as I know postgres hasn't this functionality.
> 
> I've also tried to limit this size using system quotas but it doesn't 
> work because to control this space I need that the files of the database 
> (those under the data/base/xxx) owns to the user ant then postgres 
> doesn't recognise them (I'm also afraid because i don't know what could 
> happen to the database consistence if the operating system doesn't 
> permit to complete an operation in course).
> 
> Someone has the same problem?
> How can I make that?
> What would happen to the consistence if the quota is full while postgres 
> is writing?
> 

Would it be feasible for you to install a copy of postgresql for each
user, as that user? This might allow you to set up a quota per user.
Should they run out of space, postgresql will just start throwing errors
with references to no space left on the device (the specific errors will
be dependent on what your trying to do).

Robert Treat





view thread (3+ messages)  latest in thread

Message-ID: <1046283671.1015.498.camel@camel>
Permalink:  ../1046283671.1015.498.camel@camel/
Also on:    postgresql.org/message-id/1046283671.1015.498.camel@camel

 · 

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: xzilla@users.sourceforge.net, drubior@tinet.org
  Subject: Re: Limiting database size ...
  In-Reply-To: <1046283671.1015.498.camel@camel>
  References: <3E5CA9CD.40700@tinet.org> <1046283671.1015.498.camel@camel>

* 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