pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@lists.postgresql.org
Subject: Re: Database issues when adding GUI
Date: Mon, 07 Jun 2021 09:08:03 -0700
Message-ID: <b251ff3cb957cd99269b8951f88864843d052df1.camel@lists.simkin.ca> (raw)
In-Reply-To: <alpine.LNX.2.20.2106070900200.1822@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2106070748380.1822@salmo.appl-ecosys.com>
	<3c1ed25a-8924-d27b-bb97-d79984390290@gmail.com>
	<alpine.LNX.2.20.2106070839210.1822@salmo.appl-ecosys.com>
	<880013.1623081440@sss.pgh.pa.us>
	<alpine.LNX.2.20.2106070900200.1822@salmo.appl-ecosys.com>

On Mon, 2021-06-07 at 09:03 -0700, Rich Shepard wrote:
> The problem source is postgres telling me it cannot connect to the database
> but I can do so directly using psql:
> 
> $ psql --host salmo --user rshepard --dbname bustrac
> psql: error: could not connect to server: could not connect to server:
> Connection refused
>         Is the server running on host "salmo" (127.0.1.1) and accepting
>         TCP/IP connections on port 5432?

> 
> yet,
> 
> $ psql bustrac
> psql (12.2)
> Type "help" for help.
> 
> bustrac=#
> 
> I'm thoroughly confused not before encountering this issue.


If you don't specify a host name, psql/libpq connects using the UNIX domain
socket in /tmp. If you do specify a host name it connects using a TCP socket.
Your PostgreSQL doesn't seem to be listening on TCP, or possibly you have a
firewall issue.

view thread (54+ messages)  latest in thread

Message-ID: <b251ff3cb957cd99269b8951f88864843d052df1.camel@lists.simkin.ca>
Permalink:  ../b251ff3cb957cd99269b8951f88864843d052df1.camel@lists.simkin.ca/
Also on:    postgresql.org/message-id/b251ff3cb957cd99269b8951f88864843d052df1.camel@lists.simkin.ca

 · 

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-general@postgresql.org
  Cc: ahodgson@lists.simkin.ca
  Subject: Re: Database issues when adding GUI
  In-Reply-To: <b251ff3cb957cd99269b8951f88864843d052df1.camel@lists.simkin.ca>
  References: <alpine.LNX.2.20.2106070748380.1822@salmo.appl-ecosys.com> <3c1ed25a-8924-d27b-bb97-d79984390290@gmail.com> <alpine.LNX.2.20.2106070839210.1822@salmo.appl-ecosys.com> <880013.1623081440@sss.pgh.pa.us> <alpine.LNX.2.20.2106070900200.1822@salmo.appl-ecosys.com> <b251ff3cb957cd99269b8951f88864843d052df1.camel@lists.simkin.ca>

* 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