From: Montaseri <montaseri@gmail.com>
To: dev_hyd2001@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Best way to limit database sizes
Date: Thu, 3 Jul 2008 11:31:41 -0700
Message-ID: <8078a1730807031131i79bea3ffpdaa03233afac7c57@mail.gmail.com> (raw)
In-Reply-To: <869366.20954.qm@web53708.mail.re2.yahoo.com>
References: <486CB7E4.EE98.0025.0@wicourts.gov>
<869366.20954.qm@web53708.mail.re2.yahoo.com>
How about a trigger that for every say 1000 or 10000 update or inserts (or
timely if cron job) will use pg_stats or pg_statistics to decide if a role
(user) privileges should be modified to read only (or not)
Cheers
Medi
On Thu, Jul 3, 2008 at 10:48 AM, Dev <dev_hyd2001@yahoo.com> wrote:
> yes, thats an option but currently the last resort! Doesn't it get
> difficult to manage so many instances of servers ? Also don't we then need
> to keep track of different port numbers for each user/group ?
>
> /Dev
>
>
> --- On *Thu, 7/3/08, Kevin Grittner <Kevin.Grittner@wicourts.gov>* wrote:
>
> From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
> Subject: Re: [ADMIN] Best way to limit database sizes
> To: pgsql-admin@postgresql.org, dev_hyd2001@yahoo.com
> Date: Thursday, July 3, 2008, 6:28 PM
>
> >>> Dev <dev_hyd2001@yahoo.com> wrote:
> > I have a single Postgres server which will be hosting
> multiple
> > databases belonging to different users. What would be the
> recommendation to
>
> > limit the size of each of the databases?
>
> Have you considered running a different cluster for each user?
> Each should be run with a different OS user ID, and it would be
> pretty easy to limit the size of each.
>
> -Kevin
>
>
>
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: montaseri@gmail.com, dev_hyd2001@yahoo.com
Subject: Re: Best way to limit database sizes
In-Reply-To: <8078a1730807031131i79bea3ffpdaa03233afac7c57@mail.gmail.com>
* 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