pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Kinsella <simon@bluefiresystems.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cannot initdb for 8.2.1 - "..../postgres.bki" does not exist
Date: Tue, 30 Jan 2007 23:01:14 -0500
Message-ID: <15051.1170216074@sss.pgh.pa.us> (raw)
In-Reply-To: <20070131012727.D2D96197348@smtp06l.fasthosts.co.uk>
References: <20070131012727.D2D96197348@smtp06l.fasthosts.co.uk>

"Simon Kinsella" <simon@bluefiresystems.co.uk> writes:
> \u@cheddar> /usr/local/bin/initdb -D /usr/local/pgsql/data -E UNICODE
> initdb: file "/usr/local/share/postgresql/postgres.bki" does not exist
> This means you have a corrupted installation or identified
> the wrong directory with the invocation option -L.

> The .../share/postgresql/ files do exist.

Looking at the code, this message is emitted if attempting to stat() the
file fails, regardless of what the actual errno is.  So I'm wondering
about permissions problems, specifically inability to search one of the
directories on the path.

We should adjust initdb to report the actual kernel errno value, instead
of presuming that it's "file not found".

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <15051.1170216074@sss.pgh.pa.us>
Permalink:  ../15051.1170216074@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15051.1170216074@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, simon@bluefiresystems.co.uk
  Subject: Re: Cannot initdb for 8.2.1 - "..../postgres.bki" does not exist
  In-Reply-To: <15051.1170216074@sss.pgh.pa.us>
  References: <20070131012727.D2D96197348@smtp06l.fasthosts.co.uk> <15051.1170216074@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox