Re: initdb and "exit_nicely"...

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Lincoln Yeoh <lylyeoh(at)mecomb(dot)com>, Andrew Sullivan <sullivana(at)bpl(dot)on(dot)ca>, Len Morgan <len-morgan(at)crcom(dot)net>, pgsql-general(at)hub(dot)org
Subject: Re: initdb and "exit_nicely"...
Date: 2000-05-25 23:53:14
Message-ID: Pine.LNX.4.21.0005251252570.348-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane writes:

> The idea I suggested a couple of days ago was that initdb should refuse
> to run if PGDATA exists and is nonempty. Sound reasonable?

Okay, let's do that. How do you find out if a directory is empty? The best
way I could think of is this:

test x"`ls -A "$PGDATA"`" = x

Are we talking 7.0.1 material, btw?

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-05-25 23:56:37 Re: initdb and "exit_nicely"...
Previous Message Tom Lane 2000-05-25 23:49:00 Re: PG 7.0 vacuum problem