Skip site navigation (1) Skip section navigation (2)

Re: Configuration on CentOS 4.6

From: "Phillip Smith" <phillip(dot)smith(at)weatherbeeta(dot)com(dot)au>
To: "'Bruce Hyatt'" <brucejhyatt(at)yahoo(dot)com>,<pgsql-novice(at)postgresql(dot)org>
Subject: Re: Configuration on CentOS 4.6
Date: 2008-04-29 00:29:20
Message-ID: 004a01c8a990$111e1cb0$9b0014ac@wbaus090 (view raw or flat)
Thread:
Lists: pgsql-novice
> For example, there's no pg_hba.config and there's no directory /pgsql/data
anywhere to put one in.

You need to run initdb which will generate those files with default content.

I'm not sure where CentOS / RedHat puts them by default (I compile from
source) but at a guess:
/usr/local/postgres/bin/initdb -D /path/to/database/files/ databasename

Run that as the postgres user.
/path/to/database/files/ is where you want to put the files. It does not
need to exist already as initdb will create it. Depends how CentOS / RedHat
have setup the package, but it would possible default to
/usr/local/postgres/data/ I think.


THINK BEFORE YOU PRINT - Save paper if you don't really need to print this

*******************Confidentiality and Privilege Notice*******************

The material contained in this message is privileged and confidential to
the addressee.  If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.

Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
e-mail.

In response to

Responses

pgsql-novice by date

Next:From: Bruce HyattDate: 2008-04-29 01:21:41
Subject: Re: Configuration on CentOS 4.6
Previous:From: Bruce HyattDate: 2008-04-28 23:56:35
Subject: Configuration on CentOS 4.6

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group