From: Tom Lane <tgl@sss.pgh.pa.us>
To: jose fuenmayor <jafn82@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: separate WAL
Date: Mon, 12 Dec 2005 11:25:05 -0500
Message-ID: <2696.1134404705@sss.pgh.pa.us> (raw)
In-Reply-To: <69f2062a0512120808gc25aa08tcc3e31ab52b12d50@mail.gmail.com>
References: <69f2062a0512120808gc25aa08tcc3e31ab52b12d50@mail.gmail.com>
jose fuenmayor <jafn82@gmail.com> writes:
> 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.
If there's only one physical disk spindle, there is no performance value
in spreading PG across multiple partitions on that disk --- in fact that
will likely be a net loss, because it'll force larger seek distances
between the different files the database has to access.
The common recommendation is to put WAL on a separate *physical disk*.
If you don't have multiple disks there's no advantage to be gained.
(I have seen people put WAL on a separate logical partition anyway,
because it insulates the WAL from possible out-of-disk-space conditions
in the other partitions, which is a good thing because out-of-space
is a PANIC condition for WAL but not for the main DB. But if you're
doing it because you think you'll gain performance you are misguided.)
regards, tom lane
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, jafn82@gmail.com
Subject: Re: separate WAL
In-Reply-To: <2696.1134404705@sss.pgh.pa.us>
References: <69f2062a0512120808gc25aa08tcc3e31ab52b12d50@mail.gmail.com> <2696.1134404705@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