Re: Performance tuning in Pgsql

From: Rodger Donaldson <rodgerd(at)diaspora(dot)gen(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Performance tuning in Pgsql
Date: 2010-12-16 07:33:02
Message-ID: 20101216073302.GA24090@diaspora.gen.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 10, 2010 at 01:55:14AM -0700, Scott Marlowe wrote:
>
> OK, so the way I do this, is to locate my data directory. On a stock
> Ubuntu machine that would be /var/lib/postgresql/8.4/main . In that
> dir is a directory called pg_xlog, what we're looking for. So, as
> root, I'd do:
>
> cd /var/lib/postgresql/8.4/main
> /etc/init.d/postgresql-8.4 stop
> mkdir /myothervolume/pg_xlog
> chown postgres.postgres /myothervolume/pg_xlog
> chmod 700 /myothervolume/pg_xlog
> cp -rf pg_xlog/* /myothervolume/pg_xlog
> mv pg_xlog pg_xlog_old
> ln -s /myothervolume/pg_xlog pg_xlog
> /etc/init.d/postgresql-8.4 start

Is there any particular reason that you're suggesting linking rather
than simply mounting the partition at
/var/lib/postgresql/8.4/main/pg_xlog (after copying the data across,
naturally)?

--
Rodger Donaldson rodgerd(at)diaspora(dot)gen(dot)nz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus Moor 2010-12-16 08:16:47 Re: How to restore from backup to 8.4.3 server using 9.0 dump/restore
Previous Message Adarsh Sharma 2010-12-16 06:36:08 Postgres Installation