pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: jose fuenmayor <jafn82@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: separate WAL
Date: Mon, 12 Dec 2005 10:12:27 -0600
Message-ID: <1134403947.3587.55.camel@state.g2switchworks.com> (raw)
In-Reply-To: <69f2062a0512120808gc25aa08tcc3e31ab52b12d50@mail.gmail.com>
References: <69f2062a0512120808gc25aa08tcc3e31ab52b12d50@mail.gmail.com>

On Mon, 2005-12-12 at 10:08, jose fuenmayor wrote:
> How can I install pg_xlog (WAL) in another partition, i mean separate
> the data directory from WAL, i have a single scsi disk with four
> partitions
> /, /boot, /data(data for postgresql), /WAL(pg_xlog), i ve heard that
> by doing this occurs a boost in postgreSQL performance, thanks in
> advance anyone that helps me.

The basic process is this:

initdb your database (I assume you've already done that.)
shut down the database
as the pg user, cd to $PGDATA
cp -Rfp pg_xlog /some/other/vol/pg_xlog/
mv pg_xlog pg_xlog_old
ln -s /some/other/vol/pg_xlog pg_xlog
restart database.

Note that you want the other directory set to the proper permissions
(0700) and ownership (your pg user).



view thread (3+ messages)  latest in thread

Message-ID: <1134403947.3587.55.camel@state.g2switchworks.com>
Permalink:  ../1134403947.3587.55.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1134403947.3587.55.camel@state.g2switchworks.com

 · 

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: smarlowe@g2switchworks.com, jafn82@gmail.com
  Subject: Re: separate WAL
  In-Reply-To: <1134403947.3587.55.camel@state.g2switchworks.com>
  References: <69f2062a0512120808gc25aa08tcc3e31ab52b12d50@mail.gmail.com> <1134403947.3587.55.camel@state.g2switchworks.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