Changing WAL Directory in Postgres

Started by Adarsh Sharmaover 15 years ago2 messagesgeneral
Jump to latest
#1Adarsh Sharma
adarsh.sharma@orkash.com

Hi all,

From the last 2 days I am researching on Performance Tuning in Postgres.

For this , I have to change my WAL directory to other disk than the data
directory. But I am not able to find the correct way to do this.

Please be kind to advice.

Thanks & Regards

Adarsh Sharma

#2Filip Rembiałkowski
filip.rembialkowski@gmail.com
In reply to: Adarsh Sharma (#1)
Re: Changing WAL Directory in Postgres

in short:

sudo su - postgres
pg_ctl stop -m fast
cd $PGDATA
mv pg_xlog /another/device
ln -s /another/device/pg_xlog .
pg_ctl start

2010/12/15 Adarsh Sharma <adarsh.sharma@orkash.com>

Show quoted text

Hi all,

From the last 2 days I am researching on Performance Tuning in Postgres.

For this , I have to change my WAL directory to other disk than the data
directory. But I am not able to find the correct way to do this.

Please be kind to advice.

Thanks & Regards

Adarsh Sharma

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general