pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Database issues when adding GUI
Date: Mon, 07 Jun 2021 12:11:12 -0400
Message-ID: <880596.1623082272@sss.pgh.pa.us> (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>

Rich Shepard <rshepard@appl-ecosys.com> writes:
> On Mon, 7 Jun 2021, Tom Lane wrote:
>> Are you sure the app is connecting to the right database?

> The problem source is postgres telling me it cannot connect to the database
> but I can do so directly using psql:

If the app is indeed failing to connect at all, those are some
pretty damn awful error reports.  I'd have thought for example
that

>>> INFO:root:found database

at least indicates that it made a database connection to somewhere.
Thus my suspicion that "somewhere" might be different from where
you're connecting to manually.

I think you could clarify things quite a bit by enabling log_connections
and log_statement, and then watching the postmaster log while you run
the app.

			regards, tom lane





view thread (54+ messages)  latest in thread

Message-ID: <880596.1623082272@sss.pgh.pa.us>
Permalink:  ../880596.1623082272@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/880596.1623082272@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, rshepard@appl-ecosys.com
  Subject: Re: Database issues when adding GUI
  In-Reply-To: <880596.1623082272@sss.pgh.pa.us>
  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> <880596.1623082272@sss.pgh.pa.us>

* 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