Discussion:
pg_xlog
(too old to reply)
L***@brebank.com.pl
2004-07-07 10:31:43 UTC
Permalink
Hi,

Could you please send me an advice how to configure Postgres database

With non standard pg_xlog directory location i.e. on other (non db) physical
disk ???



Leszek Dukwicz
Sam Barnett-Cormack
2004-07-07 11:34:09 UTC
Permalink
Post by L***@brebank.com.pl
Hi,
Could you please send me an advice how to configure Postgres database
With non standard pg_xlog directory location i.e. on other (non db) physical
disk ???
One word: symlinks.
--
Sam Barnett-Cormack
Software Developer | Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ***@postgresql.org)
Scott Marlowe
2004-07-07 15:32:17 UTC
Permalink
Post by L***@brebank.com.pl
Hi,
Could you please send me an advice how to configure Postgres database
With non standard pg_xlog directory location i.e. on other (non db)
physical disk ???
Easy:

su - postgres
pg_ctl stop
cd $PGDATA
mkdir /mnt/drive2/pg_xlog
cp -p pg_xlog/* /mnt/drive2/pg_xlog/
mv pg_xlog pg_xlog_old
ln -s /mnt/drive2/pg_xlog pg_xlog
pg_ctl start



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Loading...