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

Re: initdb change

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: initdb change
Date: 2008-08-25 15:48:29
Message-ID: 404.1219679309@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
David Fetter <david(at)fetter(dot)org> writes:
> While initdb allows you to choose a directory for transaction logs, it
> can't already exist, so it can't be in its usual place under $PGDATA.
> I'd like to propose that this be allowed by having an alternate syntax
> for the -X option, namely, "existing."

> 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.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Joshua DrakeDate: 2008-08-25 15:51:26
Subject: Re: initdb change
Previous:From: David FetterDate: 2008-08-25 15:40:17
Subject: initdb change

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