pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert.Farrugia@go.com.mt
Cc: pgsql-admin@postgresql.org
Subject: Re: Temporary files directory
Date: Tue, 23 Jan 2001 11:38:55 -0500
Message-ID: <6515.980267935@sss.pgh.pa.us> (raw)
In-Reply-To: <OF28B4937D.7CE54EE0-ONC12569DD.003875A5@mobisle.com>
References: <OF28B4937D.7CE54EE0-ONC12569DD.003875A5@mobisle.com>

Robert.Farrugia@go.com.mt writes:
> Is it possible to tell postgres where to create the temporary files
> (especially during clustering and re-indexing) ?

Not at present.

> Additionally, is it possible to create a database than spans on more than
> one partition or harddisk under Linux ?

Right now, the only way to do this is to manually move individual files
around and then establish symlinks to them from where they were in the
database directory.  While this works, it's pretty darn tedious to
maintain, especially for large tables that might contain many segments;
and you more or less have to shut down the database while moving files
around, too.  We have plans to create a more useful "tablespace"
administration capability in the future.

What I'd recommend in the short term is that you use a filesystem
implementation that allows a logical filesystem to span multiple
physical disks.  My preferred OS, HPUX, can do this easily; I believe
the same thing can be done with some Linux filesystems but don't know
the details.  (Any help out there?)

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <6515.980267935@sss.pgh.pa.us>
Permalink:  ../6515.980267935@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6515.980267935@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, Robert.Farrugia@go.com.mt
  Subject: Re: Temporary files directory
  In-Reply-To: <6515.980267935@sss.pgh.pa.us>
  References: <OF28B4937D.7CE54EE0-ONC12569DD.003875A5@mobisle.com> <6515.980267935@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