Re: Where is initdb? - Mailing list pgsql-general

From Martín Marqués
Subject Re: Where is initdb?
Date
Msg-id 1075144729.4015681946760@bugs.unl.edu.ar
Whole thread Raw
In response to Where is initdb?  (Jerome Lyles <susemail@hawaii.rr.com>)
List pgsql-general
Mensaje citado por Jerome Lyles <susemail@hawaii.rr.com>:

> Hello List,
>
> I have installed Postgresql 7.4 on a Suse 9.0 system using apt.
> I cannot do this:
>
> /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
>
> Because there is no "/pgsql/bin/initdb" nor /pgsql/bin/ on my system.
> Since apt did not create these directories how can I do it manually?

You don't. Normal rpm packagers put binaries in /usr/bin and not in
/usr/local/pgsql/bin.

Try this:

$ initdb -D /var/lib/pgsql/data

Or, just try to start the database with the init script:

# /etc/init.d/postgresql start

If it's like the one I have here on Fedora, it should run initdb automatically if
the Cluster hasn't been built yet.

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-------------------------------------------------------
Martín Marqués          |   Programador, DBA
Centro de Telemática    |     Administrador
               Universidad Nacional
                    del Litoral
-------------------------------------------------------

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: how to enumerate rows ?!?
Next
From: Peter Eisentraut
Date:
Subject: Re: Where is initdb?