Re: How to check whether PostgreSQL server is up and running? - Mailing list pgsql-admin

From dayat
Subject Re: How to check whether PostgreSQL server is up and running?
Date
Msg-id 9A005490EE4A4DE7A06DF79CCBF0ABBE@dayatPC
Whole thread Raw
In response to How to check whether PostgreSQL server is up and running?  (Jan Muhammad <janmuhd@yahoo.com>)
List pgsql-admin
Ok let's to create a cluster for you, be sure the pg8 directory owned by postgres user and the directory is empty.
 
[postgres@callisto]$ initdb -D /usr/local/pgsql/postgresql-8.3.7/pg8 -U postgres -W
 
Type your password if they ask, wait initdb process until finish.
 
And try the server:
[postgres@callisto]$ pg_ctl -D /usr/local/pgsql/postgresql-8.3.7/pg8 start
 
enter to database postgres with user postgres and type your password
[postgres@callisto]$ psql postgres postgres -W
 
Tell me if this not work.
 
Regards
Hidayat
 
----- Original Message -----
Sent: Friday, May 08, 2009 4:11 PM
Subject: [ADMIN] How to check whether PostgreSQL server is up and running?

Hi,

After having various error message in starting PostgreSQL version 8.2.11; finally uninstalled/deleted it. Now trying my luck on  8.3.7, but things haven't changed for me.
When I try to check that postmaster server is running or not? I get the following error:
$ postmaster -D /usr/local/pgsql/data
LOG:  could not translate host name "localhost", service "5432" to address: Name or service not known
WARNING:  could not create listen socket for "localhost"
FATAL:  could not create any TCP/IP sockets
.......................................................................
Similarly when I try to start postgres server with
[postgres@callisto postgresql-8.3.7]$ pg_ctl -D pg8 start
postgres cannot access the server configuration file "/usr/local/pgsql/postgresql-8.3.7/pg8/postgresql.conf": No such file or directory
server starting

Have no idea what's wrong and where the problem is? Do I need to change/edit some of Environment variable settings or what? Or should I reinstall PostgreSQL with Yum?? Or should give up using PostgreSQL and switch to some other DB like MySQL etc... No idea what to do.....?

Thanks in advance for help.

-Jan Muhammad


pgsql-admin by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: How to run PostgreSQL?
Next
From: Jan Muhammad
Date:
Subject: Re: How to check whether PostgreSQL server is up and running?