pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jakelist@zoho.com
Subject: BUG #15168: "pg_isready -d" effectively ignores given database name
Date: Tue, 24 Apr 2018 04:15:14 +0000
Message-ID: <152454331410.19803.86605614092680300@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15168
Logged by:          Jake
Email address:      jakelist@zoho.com
PostgreSQL version: 9.5.10
Operating system:   Fedora 25
Description:        

* Using Bash
* Tried to update as recommended. 9.6.12 does not appear to be available for
Fedora 25.

$ cd /run/media/jthomas/BackupOne/development/snowdrift

$ export PGDATA="$PWD"/.postgres-work
$ export PGHOST="$PGDATA"
$ export PGDATABASE="snowdrift"

$ pg_ctl initdb
$ pg_ctl start -w -o "-F -h '' -k "$PGHOST"" -l "$PGDATA"/log

# As you would expect; "pg_ctl initdb" created database "postgres":
$ pg_isready -d postgres
/run/media/jthomas/BackupOne/development/snowdrift/.postgres-work:5432 -
accepting connections

# Not expected, database "jibberish" does not exist:
$ pg_isready -d jibberish
/run/media/jthomas/BackupOne/development/snowdrift/.postgres-work:5432 -
accepting connections

# Just to confirm:
$ psql -l
                                List of databases
   Name    |  Owner  | Encoding |   Collate   |    Ctype    |  Access
privileges  
-----------+---------+----------+-------------+-------------+---------------------
 postgres  | jthomas | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0 | jthomas | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/jthomas    
    +
           |         |          |             |             |
jthomas=CTc/jthomas
 template1 | jthomas | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/jthomas    
    +
           |         |          |             |             |
jthomas=CTc/jthomas
(3 rows)

# No database "jibberish"

Note: https://www.postgresql.org/docs/10/static/bug-reporting.html , 5.3
portrays the mailing list as the preferred method, but then the pgsql-bugs
page
asks that the bug reporting form be used instead.



view thread (8+ messages)  latest in thread

Message-ID: <152454331410.19803.86605614092680300@wrigleys.postgresql.org>
Permalink:  ../152454331410.19803.86605614092680300@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/152454331410.19803.86605614092680300@wrigleys.postgresql.org

 · 

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: noreply@postgresql.org, jakelist@zoho.com
  Subject: Re: BUG #15168: "pg_isready -d" effectively ignores given database name
  In-Reply-To: <152454331410.19803.86605614092680300@wrigleys.postgresql.org>
  References: <152454331410.19803.86605614092680300@wrigleys.postgresql.org>

* 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