Skip site navigation (1) Skip section navigation (2)

Re: initdb change

From: Joshua Drake <jd(at)commandprompt(dot)com>
To: David Fetter <david(at)fetter(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: initdb change
Date: 2008-08-25 16:29:03
Message-ID: 20080825092903.591122d2@jd-laptop (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Mon, 25 Aug 2008 09:04:01 -0700
David Fetter <david(at)fetter(dot)org> wrote:

> > > When -X is set to "existing", it would check whether pg_xlog is a
> > > directory and the only thing in $PGDATA.  One way to do that is to
> > > add a new return code to check_data_dir() and a new branch of the
> > > case statement after it's called.
> > 
> > Why is this useful?  It seems like just extra complication.

At no time should I ask I DBA to do this:

service postgresql stop
mv /var/lib/pgsql/data/pg_xlog /xlogs/pg_xlog
ln -sf /xlogs/pg_xlog /var/lib/pgsql/data/pg_xlog
service postgresql start

We either need to provide a way to initialize it at initdb, allow
xlogs to be in table space or add a GUC for the location.


Joshua D. Drake

The PostgreSQL Company since 1997: 
PostgreSQL Community Conference:
United States PostgreSQL Association:
Donate to the PostgreSQL Project:

In response to


pgsql-hackers by date

Next:From: David FetterDate: 2008-08-25 16:42:21
Subject: Re: initdb change
Previous:From: David FetterDate: 2008-08-25 16:04:01
Subject: Re: initdb change

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group