Re: starting postgres/psql

From: Ron St-Pierre <rstpierre(at)syscor(dot)com>
To: Robert Morgan <robert_(at)ihug(dot)co(dot)nz>, pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: starting postgres/psql
Date: 2004-04-28 20:58:42
Message-ID: 40901B02.9010307@syscor.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Robert Morgan wrote:

>Back again,I still cant access the dbms I have created the user postgres
>and started postgres.
>
>[root(at)localhost bob]# su postgres
>bash-2.05b$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l
>logfile start
>/usr/local/pgsql/bin/pg_ctl: line 341: logfile: Permission denied
>
Okay, you installed and initdb'd the database as user postgres, right?
Then one of these should fix it:

- Make sure that user postgres 'owns' the directory and its subdirectories:
as user root:
chown -R postgres.postgres /usr/local/pgsql
(user postgres belongs to group postgres in this example)

- Make sure that /bin is in postgres' path (in .bash_profile)

export PATH=$PATH:/usr/local/java/bin:/usr/local/ant/bin:/usr/local/pgsql/bin
^ ^ ^ ^

(you may want/need/disregard the java and ant)

Then su to user postgres:
su - postgres
and your psql -d template1 should work

Ron

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Robert Morgan 2004-04-28 23:30:01 starting postgresql for first time
Previous Message Robert Morgan 2004-04-28 20:12:32 starting postgres/psql