pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Wed, 25 Apr 2018 14:56:00 -0700
Message-ID: <162fece5f43.c55f9f2c21063.5048374418404228247@zoho.com> (raw)
In-Reply-To: <CAKFQuwbuc2_cLvakSwOyqbnUx7uXKNpt392YU1fpToL=1DoPvw@mail.gmail.com>
References: <152454331410.19803.86605614092680300@wrigleys.postgresql.org>
	<CAKFQuwZb+XrzPJ48ZbO52Yd=oAxFrRhSTK_XXr3Z4kLoL5d8Yw@mail.gmail.com>
	<162f93f6c75.cdd696776295.5991878161692757736@zoho.com>
	<162fa45b1f0.e784e91e8344.4158165001514423492@zoho.com>
	<CAKFQuwZ-onpo9B04Ziz6FEmq3iKttieGDni4Sp4YY7siigCt=g@mail.gmail.com>
	<162facd1147.ba69cee29221.2693379920764956968@zoho.com>
	<162fb1131d6.12ac3be2b9673.5239359614834465495@zoho.com>
	<CAKFQuwbuc2_cLvakSwOyqbnUx7uXKNpt392YU1fpToL=1DoPvw@mail.gmail.com>

Thank you again. You're right that checking for database x's existence, while logged into database x, is pointless. I didn't mention that for that command I'd be using the default postgres database.

But again, you're right about what's simple/better and what's not.



In fact, just today, I discovered that there may be an even simpler solution for our scenario: have Yesod deal with postgres altogether -- no script from us. But that's outside the scope of this thread.



Back to scope: I simply vote that the '-d' option of pg_isready be deprecated in favor of a dedicated db_exists utility, rather than change existing spec, for the reasons you gave.



Jake T.

view thread (8+ messages)

Message-ID: <162fece5f43.c55f9f2c21063.5048374418404228247@zoho.com>
Permalink:  ../162fece5f43.c55f9f2c21063.5048374418404228247@zoho.com/
Also on:    postgresql.org/message-id/162fece5f43.c55f9f2c21063.5048374418404228247@zoho.com

 · 

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-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: <162fece5f43.c55f9f2c21063.5048374418404228247@zoho.com>
  References: <152454331410.19803.86605614092680300@wrigleys.postgresql.org> <CAKFQuwZb+XrzPJ48ZbO52Yd=oAxFrRhSTK_XXr3Z4kLoL5d8Yw@mail.gmail.com> <162f93f6c75.cdd696776295.5991878161692757736@zoho.com> <162fa45b1f0.e784e91e8344.4158165001514423492@zoho.com> <CAKFQuwZ-onpo9B04Ziz6FEmq3iKttieGDni4Sp4YY7siigCt=g@mail.gmail.com> <162facd1147.ba69cee29221.2693379920764956968@zoho.com> <162fb1131d6.12ac3be2b9673.5239359614834465495@zoho.com> <CAKFQuwbuc2_cLvakSwOyqbnUx7uXKNpt392YU1fpToL=1DoPvw@mail.gmail.com> <162fece5f43.c55f9f2c21063.5048374418404228247@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