Re: [COMMITTERS] pgsql-server/src

From: Greg Copeland <greg(at)CopelandConsulting(dot)Net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Thomas Lockhart <lockhart(at)fourpalms(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql-server/src
Date: 2002-08-13 13:48:45
Message-ID: 1029246525.25243.298.camel@mouse.copelandconsulting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, 2002-08-13 at 08:15, Tom Lane wrote:
> "Marc G. Fournier" <scrappy(at)hub(dot)org> writes:
> >> I think Tom is on to something here. I meant to ask but never got
> >> around to it. Why would anyone need to move the XLOG after you've
> >> inited the db?
>
> > I just determined that disk I/O is terrible, so want to move the XLOG over
> > to a different file system that is currently totally idle ...
>
> Sure, needing to manually move the xlog directory is a plausible thing,
> but *you can already do it*. The current procedure is
>
> 1. shut down postmaster
> 2. cp -p -r xlog directory to new location
> 3. rm -rf old xlog directory
> 4. ln -s new xlog directory to $PGDATA/xlog
> 5. start postmaster
>
> With the patch it's almost the same, but you can instead of (4) substitute

Why not simply create a script which does this? Creation of "movexlog"
or some such beast which anally checked everything it did. As options,
you could simply pass it the src and dest and let it take care of the
rest.

Greg

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Oliver Elphick 2002-08-13 13:49:51 Re: [COMMITTERS] pgsql-server/src
Previous Message Tom Lane 2002-08-13 13:43:56 Re: [COMMITTERS] pgsql-server/src backend/tcop/postgres.cbacke

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2002-08-13 13:49:51 Re: [COMMITTERS] pgsql-server/src
Previous Message Don Baccus 2002-08-13 13:48:28 Re: OOP real life example (was Re: Why is MySQL more