Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB4kG-0003Ay-L5 for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Apr 2018 20:41:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fB4kF-00005K-De for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Apr 2018 20:40:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB48V-0005uC-0q for pgsql-bugs@lists.postgresql.org; Tue, 24 Apr 2018 20:01:59 +0000 Received: from sender-pp-092.zoho.com ([135.84.80.237]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB48R-0006mT-4j for pgsql-bugs@lists.postgresql.org; Tue, 24 Apr 2018 20:01:58 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:cc:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=QtUi1vaauEfXx1oT7NYeKHcbBgi2PIUgbHjrzGx/hZ6454VBRWuTGZpKzw4IK4q99DKFnfvuY1FH 66PT0wCh+X7ghMOrJ2JQGJO9B0xdRYWgsJUiRMAT/KUX3Od3coU+ Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1524600106107947.1214048376336; Tue, 24 Apr 2018 13:01:46 -0700 (PDT) Received: from [50.38.82.1] by mail.zoho.com with HTTP;Tue, 24 Apr 2018 13:01:46 -0700 (PDT) Date: Tue, 24 Apr 2018 13:01:46 -0700 From: jake To: "David G. Johnston" Cc: "pgsql-bugs@lists.postgresql.org" Message-Id: <162f93f6c75.cdd696776295.5991878161692757736@zoho.com> In-Reply-To: References: <152454331410.19803.86605614092680300@wrigleys.postgresql.org> Subject: Re: BUG #15168: "pg_isready -d" effectively ignores given database name MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15831_1601911627.1524600106101" X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_15831_1601911627.1524600106101 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Ah-ha. Thank you for pointing that out. I did not notice. In case you're interested, I used a StackOverflow solution to programmatically determine whether a database exists, after first ensuring that the cluster has been initialized and that the server is running. Thank you for your rapid response, Jake ---- On Mon, 23 Apr 2018 21:29:11 -0700 David G. Johnston <david.g.johnston@gmail.com> wrote ---- On Monday, April 23, 2018, PG Bug reporting form <noreply@postgresql.org> wrote: # Not expected, database "jibberish" does not exist: $ pg_isready -d jibberish /run/media/jthomas/BackupOne/development/snowdrift/.postgres-work:5432 - accepting connections The notes section of the docs for the command cover this behavior. It is not a bug, the utility answers whether the server will accept connections generally, not that a specific connection string and credentials are valid. David J. ------=_Part_15831_1601911627.1524600106101 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
Ah-ha. Thank you for pointing that out. I did not notice= .

<= div>In case you're interested, I used a StackOverflow solution to programmati= cally determine whether a database exists, after first ensuring that the cl= uster has been initialized and that the server is running.
Thank you for your rapid response,
Jake
---- On Mon, 23 Apr 2018 21:29:11 -0700 David G. Johnston <dav= id.g.johnston@gmail.com> wrote ----

On Monday, April 23, 2018, PG Bug reporting form <= ;noreply@postgr= esql.org> wrote:
# Not ex= pected, database "jibberish" does not exist:
$ pg_isready -d= jibberish
/run/media/jthomas/BackupOne/development/snowdrif= t/.postgres-work:5432 -
accepting connections

The notes section of the docs for the command c= over this behavior.  It is not a bug, the utility answers whether the = server will accept connections generally, not that a specific connection st= ring and credentials are valid.

David J.


------=_Part_15831_1601911627.1524600106101--