Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHqQ-0006gP-3h for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:11:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHqP-0007lQ-2f for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:11:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHqO-0007lH-PC for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:11:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHqM-0001e8-Tb for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:11:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 157GBCai880597; Mon, 7 Jun 2021 12:11:12 -0400 From: Tom Lane To: Rich Shepard cc: pgsql-general@lists.postgresql.org Subject: Re: Database issues when adding GUI In-reply-to: References: <3c1ed25a-8924-d27b-bb97-d79984390290@gmail.com> <880013.1623081440@sss.pgh.pa.us> Comments: In-reply-to Rich Shepard message dated "Mon, 07 Jun 2021 09:03:19 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <880595.1623082272.1@sss.pgh.pa.us> Date: Mon, 07 Jun 2021 12:11:12 -0400 Message-ID: <880596.1623082272@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rich Shepard 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