pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
Cc: Charlie Toohey <ctoohey@pacbell.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Indexes on separate disk ?
Date: Thu, 13 Jun 2002 23:22:33 -0400
Message-ID: <2385.1024024953@sss.pgh.pa.us> (raw)
In-Reply-To: <20020613232157.A19061@vestdata.no>
References: <20020613194938.E0827476FA1@postgresql.org>
	<20020613232157.A19061@vestdata.no>

=?iso-8859-1?Q?Ragnar_Kj=F8rstad?= <postgres@ragnark.vestdata.no> writes:
> On Thu, Jun 13, 2002 at 12:49:39PM -0700, Charlie Toohey wrote:
>> I've looked around a lot and don't think this is possible with Postgres, but
>> figured I would ask in case I missed something. Is it possible to configure 
>> things so that an index resides on a separate disk ?

> Maybe you can just move it to a different filesystem and use a symlink?

That's pretty much the standard hack: shut down the postmaster, move the
file, create a symlink.  However this is a fairly labor-intensive kluge.
Especially so if the file exceeds 1Gb, because then you will need to
deal with symlinking multiple segments --- and perhaps re-symlinking
them, if the size dips below a Gb boundary and then grows again.
Still, for sub-Gb-sized indexes it's certainly doable.

We hope to have a cleaner tablespace-based approach in a release or two.

BTW, I'd certainly recommend getting the WAL files (pg_xlog directory)
moved to their own drive long before you worry about separating indexes
from data.  That's a lot simpler (you only need a symlink for the
directory).

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <2385.1024024953@sss.pgh.pa.us>
Permalink:  ../2385.1024024953@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2385.1024024953@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, postgres@ragnark.vestdata.no, ctoohey@pacbell.net
  Subject: Re: Indexes on separate disk ?
  In-Reply-To: <2385.1024024953@sss.pgh.pa.us>
  References: <20020613194938.E0827476FA1@postgresql.org> <20020613232157.A19061@vestdata.no> <2385.1024024953@sss.pgh.pa.us>

* 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