Re: Unhelpful initdb error message

From: Thom Brown <thom(at)linux(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Unhelpful initdb error message
Date: 2012-03-06 17:51:54
Message-ID: CAA-aLv7nc6VbOkeHBiBUtvCr45YbvZpPmU-6tS+U1nUywnctzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6 March 2012 17:46, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Thom Brown <thom(at)linux(dot)com> writes:
>> On 6 March 2012 16:31, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> [ scratches head... ]  I can't reproduce it with current git tip.
>
>> And I don't think I can reproduce this if I remove that directory.
>> I've seen this issue about 3 or 4 times in the past, and fixed it by
>> ditching the old data dir completely.  I'm just not sure what causes
>> this to happen.
>
> I'm a bit confused here.  Isn't the data directory totally empty before
> initdb starts?  It's supposed to refuse to proceed otherwise.

Yes, it is completely empty:

thom(at)swift:~/Development$ ls -la data
total 8
drwx------ 2 thom thom 4096 2012-03-06 17:48 .
drwxrwxr-x 15 thom thom 4096 2012-03-06 17:46 ..

--
Thom

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-03-06 17:53:52 Re: Unhelpful initdb error message
Previous Message Thom Brown 2012-03-06 17:48:51 Re: Unhelpful initdb error message