Re: basic questions: Postgres with yum on CentOS 5.1 - Mailing list pgsql-general

From Tom Lane
Subject Re: basic questions: Postgres with yum on CentOS 5.1
Date
Msg-id 9847.1199252157@sss.pgh.pa.us
Whole thread Raw
In response to Re: basic questions: Postgres with yum on CentOS 5.1  (Greg Smith <gsmith@gregsmith.com>)
List pgsql-general
Greg Smith <gsmith@gregsmith.com> writes:
> On Tue, 1 Jan 2008, Chuck wrote:
>> Since I have a packaged installation, I don't believe that I will call
>> initdb directly.

> There is actually another command I don't think you've noticed yet:

> service postgresql initdb

Actually, that was only added in very recent versions of the postgresql
init script.  Before about 8.2, the first 'service postgresql start'
would automatically run initdb.  We split it out because of the (small)
risk of doing the wrong thing ...

In any case, I concur with the suggestion that you should use the init
script rather than invoking initdb directly.  In most package setups
that's much more likely to get the details right.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: visibility rules for AFTER UPDATE Constraint Triggers Function
Next
From: "Albe Laurenz"
Date:
Subject: Re: Can't make backup