PostgreSQL Question:

How to check whether PostgreSQL server is up and running?

PostgreSQL Interview Question
PostgreSQL Interview Question

Answers:

Answer #1
/usr/local/etc/rc.d/010.pgsql.sh status
/usr/local/etc/rc.d/postgresql status?

Answer #2
Root user
/etc/init.d/postgresql-9.3 status
postgres user
/opt/PostgreSQL/9.3/bin/pg_ctl -D /opt/PostgreSQL/9.3/data1/ status


Previous QuestionNext Question
How to stop the database server?What are the languages which PostgreSQL supports?