pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Myatluk Andrey <Andrey.Myatluk@bercut.ru>
To: pgsql-jdbc@postgresql.org
Subject: Re: Postgres-JDBC question
Date: Wed, 1 Feb 2006 12:01:27 +0300
Message-ID: <CD481F25862BDF4EB3014619BACB38D8FECA19@master.office.bercut.ru> (raw)

Guillaume,

On my host if I run netstat I see the following:

tcp        0      0 0.0.0.0:5432                0.0.0.0:*
LISTEN      5557/postmaster

tcp        0      0 :::5432                     :::*
LISTEN      5557/postmaster

Do those mean that my database must be accessible from the outside? I
have access from localhost processes, but my attempts to connect to the
database with pgAdmin failed.

Andrey

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Guillaume
Cottenceau
Sent: Monday, January 30, 2006 12:52 PM
To: Sean; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Postgres-JDBC question

Mark Lewis <mark.lewis 'at' mir3.com> writes:

> This usually means that you have allowed TCP/IP connections in
> postgresql.conf, but haven't added a rule allowing remote access in
> pg_hba.conf for anything other than localhost.

Sean - on Linux, you can check this with the following command:

[root@meuh ~] netstat -ltpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address
State       PID/Program name   
tcp        0      0 0.0.0.0:5432                0.0.0.0:*
LISTEN      3310/postmaster     
                    ^^^ my postgres is listening on all addresses

[...]

tcp        0      0 127.0.0.1:25                0.0.0.0:*
LISTEN      3259/master         
                    ^^^ my postfix is listening on localhost only

-- 
Guillaume Cottenceau

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq






view thread (7+ messages)  latest in thread

Message-ID: <CD481F25862BDF4EB3014619BACB38D8FECA19@master.office.bercut.ru>
Permalink:  ../CD481F25862BDF4EB3014619BACB38D8FECA19@master.office.bercut.ru/
Also on:    postgresql.org/message-id/CD481F25862BDF4EB3014619BACB38D8FECA19@master.office.bercut.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Andrey.Myatluk@bercut.ru
  Subject: Re: Postgres-JDBC question
  In-Reply-To: <CD481F25862BDF4EB3014619BACB38D8FECA19@master.office.bercut.ru>
  References: <CD481F25862BDF4EB3014619BACB38D8FECA19@master.office.bercut.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox