Re: Network Connection

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: Valter <pgsql(at)intersic(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Network Connection
Date: 2004-03-16 19:38:48
Message-ID: 405757C8.5020800@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Valter wrote:
> I have started postmaster and connected thru psql and that is ok.
>
> But when I try to connect over the network I get a connection refused
> message, inquiring if server is running on port 5432.

You're most likely hitting one of two problems. Either Postgres isn't
configured to listen for TCP connections, or Mandrake has a packet filter
enabled that's blocking them.

netstat -finet should tell you whether or not Postgres is listening on
the correct port. If not, edit your postgresql.conf and restart the
server. The lines you're looking for are tcpip_socket = false (change
it to "true") and "port = 5432"

If you still can't connect, then you'll have to find out what kind of
packet filter Mandrake is running and tweak it.

Once that works, you'll probably need to adjust the security model that
Postgres is using to authenticate users. See pg_hba.conf in the same
directory as postgresql.conf

--
Bill Moran
Potential Technologies
http://www.potentialtech.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-03-16 19:40:53 Re: L doesn't seem to be working in to_char()
Previous Message Valter 2004-03-16 19:23:28 Sorry for several posts