pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: mhwood@ameritech.net
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14912: Undocumented: 'psql -l' assumes database 'postgresql' not $USER
Date: Fri, 2 Feb 2018 16:49:44 -0500
Message-ID: <54c57675-f673-3f8e-d7d7-b5c61943f9fc@2ndquadrant.com> (raw)
In-Reply-To: <CAKFQuwZYLRkGH2wisFk74rSRnOt4qwM+LW8C3t+uZSr+thuTmw@mail.gmail.com>
References: <20171116171735.1474.30450@wrigleys.postgresql.org>
	<CAKFQuwZYLRkGH2wisFk74rSRnOt4qwM+LW8C3t+uZSr+thuTmw@mail.gmail.com>

On 11/16/17 16:27, David G. Johnston wrote:
>        List all available databases, then exit. Other non-connection
> -      options are ignored. This is similar to the meta-command
> +      options are ignored. If an explicit database name is not
> +      found the <literal>postgres</literal> database, not the user's,
> +      will be targeted for connection. This is similar to the meta-command
>        <command>\list</command>.

What does "an explicit database name is not found" mean?  How does one
find an explicit database name?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (6+ messages)  latest in thread

Message-ID: <54c57675-f673-3f8e-d7d7-b5c61943f9fc@2ndquadrant.com>
Permalink:  ../54c57675-f673-3f8e-d7d7-b5c61943f9fc@2ndquadrant.com/
Also on:    postgresql.org/message-id/54c57675-f673-3f8e-d7d7-b5c61943f9fc@2ndquadrant.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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, david.g.johnston@gmail.com, mhwood@ameritech.net
  Subject: Re: BUG #14912: Undocumented: 'psql -l' assumes database 'postgresql' not $USER
  In-Reply-To: <54c57675-f673-3f8e-d7d7-b5c61943f9fc@2ndquadrant.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