pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Shellam <andy@andycc.net>
To: Aaron Bono <postgresql@aranya.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Separating Databases on Different Partitions
Date: Tue, 30 May 2006 17:36:56 +0100
Message-ID: <447C74A8.7090002@andycc.net> (raw)
In-Reply-To: <bf05e51c0605300904u7e40a7fbs832abbd1a2ce88ff@mail.gmail.com>
References: <bf05e51c0605300811q6db02450u50c781e487dd02e5@mail.gmail.com>
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAJ4LePsW+XZOvyeG1ksiPa8BAAAAAA==@mailnetwork.co.uk>
	<bf05e51c0605300904u7e40a7fbs832abbd1a2ce88ff@mail.gmail.com>

Ah, fair enough, table spaces are definitely the way to go then.  I did
use it about a year ago to put one database on a different physical
drive, but I haven't used it for ages so cannot remember how to set it up.

Andy

Aaron Bono wrote:
> I think the tablespace option will work best - I will check it out.  I
> do not give the users control of the database since I do the
> development, I just need a way to allocate the space and charge for
> space used.  Since cPanel monitors user space, I don't want to rely on
> having to query the database to get size information - I would have to
> put together separate scripts to watch space usage which I would
> rather not do.
>
> Thanks for the help!
>
> -Aaron
>
> On 5/30/06, *Andy Shellam* <andy.shellam@mailnetwork.co.uk
> <mailto:andy.shellam@mailnetwork.co.uk> > wrote:
>
>     Hi Aaron
>
>      
>
>     I believe you could probably do this best with table spaces. 
>     You'll have to look it up in the documentation as I haven't done
>     it for a while.
>
>     You symlink a directory under <pgdata>/pg_tblspc to another
>     physical directory (eg. Your user's home/db directory), then when
>     you create the database, set its default table space to which
>     directory you create.
>
>      
>
>     There is a downside in that the user could create a new table and
>     override the table space to that of another user.
>
>      
>
>     You could always query the system catalogues for the usage for
>     each user's database and add that to the physical size of their
>     home directory?
>
>      
>
>     Regards,
>
>      
>
>     Andy
>
>
> !DSPAM:14,447c6d25256841812113538! 




view thread (5+ messages)

Message-ID: <447C74A8.7090002@andycc.net>
Permalink:  ../447C74A8.7090002@andycc.net/
Also on:    postgresql.org/message-id/447C74A8.7090002@andycc.net

 · 

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: andy@andycc.net, postgresql@aranya.com
  Subject: Re: Separating Databases on Different Partitions
  In-Reply-To: <447C74A8.7090002@andycc.net>
  References: <bf05e51c0605300811q6db02450u50c781e487dd02e5@mail.gmail.com> <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAAJ4LePsW+XZOvyeG1ksiPa8BAAAAAA==@mailnetwork.co.uk> <bf05e51c0605300904u7e40a7fbs832abbd1a2ce88ff@mail.gmail.com> <447C74A8.7090002@andycc.net>

* 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