Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8AEBB9FB35D for ; Wed, 31 Jan 2007 00:01:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 24553-06 for ; Wed, 31 Jan 2007 00:01:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 6E0B59FB349 for ; Wed, 31 Jan 2007 00:01:16 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l0V41E28015052; Tue, 30 Jan 2007 23:01:14 -0500 (EST) To: "Simon Kinsella" cc: pgsql-admin@postgresql.org Subject: Re: Cannot initdb for 8.2.1 - "..../postgres.bki" does not exist In-reply-to: <20070131012727.D2D96197348@smtp06l.fasthosts.co.uk> References: <20070131012727.D2D96197348@smtp06l.fasthosts.co.uk> Comments: In-reply-to "Simon Kinsella" message dated "Wed, 31 Jan 2007 01:27:21 +0000" Date: Tue, 30 Jan 2007 23:01:14 -0500 Message-ID: <15051.1170216074@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/287 X-Sequence-Number: 24443 "Simon Kinsella" 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