From: | Darren Ferguson <darren(at)thread(dot)crystalballinc(dot)com> |
---|---|
To: | Reynard Hilman <reynardmh(at)lightsky(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: how to test whether postgres server is running? |
Date: | 2003-03-27 23:20:02 |
Message-ID: | Pine.LNX.4.44.0303271818280.29265-100000@thread.crystalballinc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
netstat -anp | grep postmaster
This will tell you if postmater is listening on the port.
If you do not have root access then
netstat -an | grep 5432
HTH
Darren
On Thu, 27 Mar 2003, Reynard Hilman wrote:
>
> Hi everyone,
>
> I run into problem where pg_pconnect (in php script) failed to get
> connection to the postgres server even when the server is actually
> running because the server is too busy (serving too many requests).
>
> So I want to check from php script if postgres server is running. The
> only way I could think of to is telnet the server on port 5432 (where
> postgres is listening).
>
> Does someone know a better way to check if postgres server is running?
>
> thanks
> - reynard
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
Darren Ferguson
From | Date | Subject | |
---|---|---|---|
Next Message | Dennis Gearon | 2003-03-27 23:20:07 | Re: transaction blocking inserts in postgresql 7.3 |
Previous Message | Jonathan Bartlett | 2003-03-27 23:17:46 | Re: About OIDs |