From: scott.marlowe <scott.marlowe@ihs.com>
To: hal <hal@cc.usu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Multiple disks
Date: Fri, 9 Apr 2004 09:10:17 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0404090906570.11444-100000@css120.ihs.com> (raw)
In-Reply-To: <36A36A88-89A4-11D8-8FD0-000A959670A0@cc.usu.edu>
On Thu, 8 Apr 2004, hal wrote:
> What is the best/simplest way to split:
> a database
> multiple databases
> a table
> multiple tables
> across more than one disk drive?
>
> I know that this has come up before but I can't find
> any info. A pointer to a HOWTO or other info would
> be wonderful.
The current king of putting postgresql on multiple platters and getting
best overall performance is a battery backed caching raid controller run
one or more many disk RAID-5 arrays. The more disks, the better up to a
dozen or two.
The red headed step child is the alternate location stuff, discussed in
the docs here:
http://www.postgresql.org/docs/7.4/static/manage-ag-alternate-locs.html
which will allow you to put individual databases in different locations.
It's a hackish kludge that should be replaced by the upcoming tablespaces
patches. I'm not sure if those will be done by 7.5 release or not.
The next way is to individually link thinks like indexes onto other
volumes. The procedure is basically, create the index, figure out which
file in $PGDATA/base/oidofyourdbhere is the index, shut down postgresql,
copy to file elsewhere, softlink it, restart apache. This setup will not
survive reindexing or dropping / recreating the index.
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: scott.marlowe@ihs.com, hal@cc.usu.edu
Subject: Re: Multiple disks
In-Reply-To: <Pine.LNX.4.33.0404090906570.11444-100000@css120.ihs.com>
References: <36A36A88-89A4-11D8-8FD0-000A959670A0@cc.usu.edu> <Pine.LNX.4.33.0404090906570.11444-100000@css120.ihs.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