pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: symlinking pg_xlog
Date: Fri, 24 Jun 2005 07:40:38 -0600
Message-ID: <20050624134038.GA45058@winnie.fuhr.org> (raw)
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB1679A@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB1679A@neptun.sonorys.at>

On Fri, Jun 24, 2005 at 03:18:12PM +0200, KÖPFERL Robert wrote:
> 
> due to I/O-bottle necks I think of making a symlink from pg_xlog to another
> physical disk.
> This is a modification inside the cluster dir. What kind of idea is that?
> bad one?

See the "Write-Ahead Logging (WAL)" chapter in the documentation:

http://www.postgresql.org/docs/8.0/static/wal-internals.html

"It is of advantage if the log is located on another disk than the
main database files.  This may be achieved by moving the directory
pg_xlog to another location (while the server is shut down, of
course) and creating a symbolic link from the original location in
the main data directory to the new location."

Several third-party performance-tuning documents make the same
recommendation.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (6+ messages)  latest in thread

Message-ID: <20050624134038.GA45058@winnie.fuhr.org>
Permalink:  ../20050624134038.GA45058@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050624134038.GA45058@winnie.fuhr.org

 · 

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: mike@fuhr.org, robert.koepferl@sonorys.at
  Subject: Re: symlinking pg_xlog
  In-Reply-To: <20050624134038.GA45058@winnie.fuhr.org>
  References: <ED4E30DD9C43D5118DFB00508BBBA76EB1679A@neptun.sonorys.at> <20050624134038.GA45058@winnie.fuhr.org>

* 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