X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 34A834758DC for ; Wed, 26 Feb 2003 13:21:26 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 03707-07 for ; Wed, 26 Feb 2003 13:21:15 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 30DBA474E4F for ; Wed, 26 Feb 2003 13:21:15 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1QInm6P032122; Wed, 26 Feb 2003 13:49:48 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h1QILBp24554; Wed, 26 Feb 2003 13:21:12 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTHLF8; Wed, 26 Feb 2003 13:21:10 -0500 Subject: Re: Limiting database size ... From: Robert Treat To: Daniel Rubio Cc: pgsql-admin@postgresql.org In-Reply-To: <3E5CA9CD.40700@tinet.org> References: <3E5CA9CD.40700@tinet.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 26 Feb 2003 13:21:11 -0500 Message-Id: <1046283671.1015.498.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/406 X-Sequence-Number: 7604 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