Re: Initdb failed in PostgreSQL 7.3.21

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Kakoli Sen" <kakolis(at)cdacb(dot)ernet(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Initdb failed in PostgreSQL 7.3.21
Date: 2008-02-18 19:45:04
Message-ID: dcc563d10802181145r643f221ay968c77e02a3a9055@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Feb 18, 2008 6:15 AM, Kakoli Sen <kakolis(at)cdacb(dot)ernet(dot)in> wrote:
>
>
>
> Hi,
> I install PostgreSQL 7.3.21 successfully with sudo and could start
> the postmaster as sudo.

The postmaster won't starte without a valid data directory.

> Then I want to initialise my own db as unprivileged user. I run the
> following commands:
>
> root# mkdir /usr/local/pgsql/data
> root# chown kakolis /usr/local/pgsql/data
> root# su kakolis
> kakolis$ initdb -D /usr/local/pgsql/data.
>
> The last command gives the following output:
> Fixing permissions on existing directory /usr/local/pgsql/data... ok
> creating directory /usr/local/pgsql/data/base... ok
> creating directory /usr/local/pgsql/data/global... ok
> creating directory /usr/local/pgsql/data/pg_xlog... ok
> creating directory /usr/local/pgsql/data/pg_clog... ok
> creating template1 database in /usr/local/pgsql/data/base/1...
> initdb failed.
>
> Where is the problem?

The db is already initted? Just guessing.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Niantschur 2008-02-18 19:46:48 Re: How to return a large String with C
Previous Message Tom Lane 2008-02-18 19:44:06 Re: Initdb failed in PostgreSQL 7.3.21