pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shashanth Reddy <shashanthreddy7@gmail.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18033: org.postgresql.util.PSQLException:
Date: Thu, 20 Jul 2023 10:58:31 -0400
Message-ID: <EFB46D45-22CA-441D-86DA-DCA41D9E5B39@gmail.com> (raw)
In-Reply-To: <C73660CD-7F3A-4634-B546-41FF75476A39@yesql.se>
References: <C73660CD-7F3A-4634-B546-41FF75476A39@yesql.se>

Can you help me with yhe process on how to know the list of ports available for that postgres server as am not able to connect using many combinations

Sent from my iPhone

> On Jul 20, 2023, at 4:47 AM, Daniel Gustafsson <daniel@yesql.se> wrote:
> 
> 
>> 
>>> On 20 Jul 2023, at 05:11, PG Bug reporting form <noreply@postgresql.org> wrote:
>> 
>> org.postgresql.util.PSQLException: Connection to localhost:5436 refused.
>> Check that the hostname and port are correct and that the postmaster is
>> accepting TCP/IP connections. AM facing this issue while trying to connect
>> to Postgres from my java code. Can you please suggest me the way to get the
>> list of ports that ara avialble for me to use?
> 
> You need to connect to the port which PostgreSQL was configured to listen to,
> which in the default case is 5432.  If you are unable to connect, make sure
> that the database is configured for that port, that the database is running,
> that you are connecting to the right host and that there are no firewall rules
> or similar which may block access to that port.
> 
> This is unlikely to be a bug in postgres, so you should take this question to a
> more appropriate mailinglist like pgsql-general.  See the mailinglist page for
> more info:
> 
>    https://www.postgresql.org/list/
> 
> --
> Daniel Gustafsson
> 





view thread (4+ messages)  latest in thread

Message-ID: <EFB46D45-22CA-441D-86DA-DCA41D9E5B39@gmail.com>
Permalink:  ../EFB46D45-22CA-441D-86DA-DCA41D9E5B39@gmail.com/
Also on:    postgresql.org/message-id/EFB46D45-22CA-441D-86DA-DCA41D9E5B39@gmail.com

 · 

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-bugs@postgresql.org
  Cc: shashanthreddy7@gmail.com, daniel@yesql.se
  Subject: Re: BUG #18033: org.postgresql.util.PSQLException:
  In-Reply-To: <EFB46D45-22CA-441D-86DA-DCA41D9E5B39@gmail.com>
  References: <C73660CD-7F3A-4634-B546-41FF75476A39@yesql.se> <EFB46D45-22CA-441D-86DA-DCA41D9E5B39@gmail.com>

* 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