Re: [despammed] Connection problems with "psql -h localhost postgres" - Mailing list pgsql-novice

From Wayne Pierce
Subject Re: [despammed] Connection problems with "psql -h localhost postgres"
Date
Msg-id 4617fd6d050502070317855c0b@mail.gmail.com
Whole thread Raw
In response to Re: [despammed] Connection problems with "psql -h localhost postgres"  (Andreas Kretschmer <akretschmer@despammed.com>)
List pgsql-novice
On 5/2/05, Andreas Kretschmer <akretschmer@despammed.com> wrote:
> am  02.05.2005, um  9:03:50 -0400 mailte Wayne Pierce folgendes:
> > I have PostgreSQL setup and everything is working fine when I use
> > "psql -d <dbName>" on the command line or when I use mod_python to
> > connect.  However I when I use "psql -h localhost <dbName> postgres" I
> > get the following error:
> >
> > psql: could not connect to server: Connection refused
> >         Is the server running on host "localhost" and accepting
> >         TCP/IP connections on port 5432?
> >
> > I have the following lines in my pg_ident.conf and pg_hba.conf files:
>
> PG does not listen on TCP.
>
> Set in /etc/postgresql/postgresql.conf
>
> tcpip_socket = true

I did have that setting.  After restarting the server I typed "ps
-deaf | grep postgres" and the -i option was not showing up for the
postmaster startup command.  I couldn't figure out why so I added '-i'
to the line in /etc/init.d/postgresql and that part now works.

Thank you for the response,

Wayne

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: how to make collation work
Next
From: Tom Lane
Date:
Subject: Re: Connection problems with "psql -h localhost postgres"