From: jake <jakelist@zoho.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15168: "pg_isready -d" effectively ignores given database name
Date: Tue, 24 Apr 2018 13:01:46 -0700
Message-ID: <162f93f6c75.cdd696776295.5991878161692757736@zoho.com> (raw)
In-Reply-To: <CAKFQuwZb+XrzPJ48ZbO52Yd=oAxFrRhSTK_XXr3Z4kLoL5d8Yw@mail.gmail.com>
References: <152454331410.19803.86605614092680300@wrigleys.postgresql.org>
<CAKFQuwZb+XrzPJ48ZbO52Yd=oAxFrRhSTK_XXr3Z4kLoL5d8Yw@mail.gmail.com>
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.
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: jakelist@zoho.com, david.g.johnston@gmail.com
Subject: Re: BUG #15168: "pg_isready -d" effectively ignores given database name
In-Reply-To: <162f93f6c75.cdd696776295.5991878161692757736@zoho.com>
References: <152454331410.19803.86605614092680300@wrigleys.postgresql.org> <CAKFQuwZb+XrzPJ48ZbO52Yd=oAxFrRhSTK_XXr3Z4kLoL5d8Yw@mail.gmail.com> <162f93f6c75.cdd696776295.5991878161692757736@zoho.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