Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 139B9475EE1 for ; Thu, 13 Jun 2002 23:35:22 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id ADCCA47719A for ; Thu, 13 Jun 2002 23:22:43 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5E3MXb02388; Thu, 13 Jun 2002 23:22:33 -0400 (EDT) To: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= Cc: Charlie Toohey , pgsql-admin@postgresql.org Subject: Re: Indexes on separate disk ? In-reply-to: <20020613232157.A19061@vestdata.no> References: <20020613194938.E0827476FA1@postgresql.org> <20020613232157.A19061@vestdata.no> Comments: In-reply-to =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= message dated "Thu, 13 Jun 2002 23:21:57 +0200" Date: Thu, 13 Jun 2002 23:22:33 -0400 Message-ID: <2385.1024024953@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/97 X-Sequence-Number: 4532 =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= 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