Re: How to check whether PostgreSQL server is up and running?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Jan Muhammad <janmuhd(at)yahoo(dot)com>
Cc: dayat <sql(dot)muda(at)yahoo(dot)co(dot)id>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to check whether PostgreSQL server is up and running?
Date: 2009-05-11 05:24:31
Message-ID: dcc563d10905102224o1d6864b4n44ea4ebfefb839df@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, May 8, 2009 at 11:28 AM, Jan Muhammad <janmuhd(at)yahoo(dot)com> wrote:
> Hi,
>
> Got it working now, though after several searches and hit-n-trials....
>
> The problem was in my "/pgsql/data/pg_hba.conf"; where it needed my
> machine's IP.
> Now got it working.
>
> But the real issue of service is not yet being recognized  with in the
> command:
> # service postgresql status
> postgresql: unrecognized service

Did you install postgresql as an RPM package? The service command in
redhat is designed to work with /etc/init.d/ scripts that are
installed by proper rpm packages. The service script that comes with
a source install is NOT designed to work properly with that specific
package. If you want service to work properly, I'd recommend sticking
to the PGDG redhat packages, it makes life much easier, especially for
beginners.

Snip

> 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.....?

Yes install with yum or rpm. If you want to have real fun, try
installing mysql from source.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dunia Ramazani 2009-05-11 13:19:12 Postgresql DBA trainer
Previous Message Justin 2009-05-09 02:50:49 Re: testing 8.4