From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
---|---|
To: | Romildo Wildgrube <romildo(at)ragingnet(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Performance tunning |
Date: | 2003-07-28 21:31:41 |
Message-ID: | Pine.LNX.4.33.0307281529070.20224-100000@css120.ihs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Mon, 28 Jul 2003, Romildo Wildgrube wrote:
> Hi,
>
> According to some postings it looks like there is a recommendation to
> separate the database files from the transaction logs into separated
> disk/raid. I was wondering if someone know where the transaction logs
> are setup and how can I change to point to a new location.
Your transaction logs and commit logs are in pg_xlog and pg_clog
respectively in your $PGDATA directory. first, shut down the database:
'pg_ctl stop' Then copy them elsewhere, rename the source directory
(don't delete until you're sure everything is working) and then link the
new directories under $PGDATA:
pg_ctl stop
cd $PGDATA
mkdir someotherplace/pg_xlog
mkdir someotherplace/pg_clog
cp -Rfp pg_xlog/* someotherplace/pg_xlog/
cp -Rfp pg_clog/* someotherplace/pg_clog/
mv pg_xlog pg_xlog_old
mv pg_clog pg_clog_old
ln -s someotherplace/pg_xlog/ pg_xlog
ln -s someotherplace/pg_clog/ pg_clog
pg_ctl start
That should do it.
From | Date | Subject | |
---|---|---|---|
Next Message | Romildo Wildgrube | 2003-07-29 00:12:59 | Partition DB Tables by month |
Previous Message | Shankar K | 2003-07-28 21:29:05 | Rebuild indexes |