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 17:26:15
Message-ID: 20080825102615.62bc600e@jd-laptop (view raw or whole thread)
Lists: pgsql-hackers
On Mon, 25 Aug 2008 10:12:03 -0700
David Fetter <david(at)fetter(dot)org> wrote:

> > /var/lib/pgsql/data/ exists but is empty you can initdb within that
> > directory. However if there is anything in it you can not. You are
> > asking that if pg_xlog exists but is empty that we still be able to
> > use the DATADIR and you can pass existing so that it will also use
> > pg_xlog if it is empty.
> > 
> > My take would be to not add a new flag. Instead to implicitly allow
> > it. If initdb finds that DATADIR and pg_xlog is empty it will use
> > both. 
> Is there some reason why initdb shouldn't just Do The Right Thing™
> when it finds an empty extant $PGDATA/pg_xlog directory that passes
> the same tests an empty extant $PGDATA would?

That is what I was suggesting.

Joshua D. Drake

> Cheers,
> David.

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: Jeff DavisDate: 2008-08-25 17:42:30
Subject: Re: WIP patch: reducing overhead for repeat de-TOASTing
Previous:From: David FetterDate: 2008-08-25 17:12:03
Subject: Re: initdb change

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