Re: Post-Reboot Issue: Postmaster Not Accessible - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Post-Reboot Issue: Postmaster Not Accessible
Date
Msg-id 45E5A013.1090708@commandprompt.com
Whole thread Raw
In response to Post-Reboot Issue: Postmaster Not Accessible  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Post-Reboot Issue: Postmaster Not Accessible  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
Rich Shepard wrote:
>   After having to reboot my server/workstation this morning, I've a
> problem with
> postgresql; one I've never before encountered.
>
>   The postmaster is running:
>
> 9959 pts/1    S      0:00 /usr/bin/postmaster -D /var/lib/pgsql/data
>
> and the socket is present:
>
> srwxrwxrwx 1 root root 0 2007-02-28 05:20 /tmp/.s.PGSQL.5432=
>
>   But I cannot connect to the database for SQL-Ledger nor from the command
> line:
>
> [rshepard@salmo ~]$ psql
> psql: could not connect to server: Connection refused
>         Is the server running locally and accepting
>         connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
>   The server is running locally. How can I test whether it's accepting
> connections on the socket? And, what can I do to get it back to normal and
> accpting connections?


psql -h localhost -U postgres databasename

Joshua D. Drake

>
> Thanks,
>
> Rich
>


--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


pgsql-general by date:

Previous
From: Arnaud Lesauvage
Date:
Subject: Re: Curious situation - running program cannot seem to delete records.
Next
From: Tom Lane
Date:
Subject: Re: Post-Reboot Issue: Postmaster Not Accessible