pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPerformance tunning
2+ messages / 2 participants
[nested] [flat]
* Performance tunning
@ 2003-07-28 21:23 Romildo Wildgrube <romildo@ragingnet.com>
0 siblings, 1 reply; 2+ messages in thread
From: Romildo Wildgrube @ 2003-07-28 21:23 UTC (permalink / raw)
To: pgsql-admin
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.
Romi
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Performance tunning
@ 2003-07-28 21:31 scott.marlowe <scott.marlowe@ihs.com>
parent: Romildo Wildgrube <romildo@ragingnet.com>
0 siblings, 0 replies; 2+ messages in thread
From: scott.marlowe @ 2003-07-28 21:31 UTC (permalink / raw)
To: Romildo Wildgrube <romildo@ragingnet.com>; +Cc: 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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-07-28 21:31 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-28 21:23 Performance tunning Romildo Wildgrube <romildo@ragingnet.com>
2003-07-28 21:31 ` scott.marlowe <scott.marlowe@ihs.com>
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