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>
Cc: Mark Wood <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: Sat, 3 Feb 2018 11:05:41 -0500
Message-ID: <f8049805-b9f7-f3e0-307d-2805f3e834d4@2ndquadrant.com> (raw)
In-Reply-To: <CAKFQuwb2QgiMA=aWXpHkDmQSPWnO=mDJArX-UozddmQf8EoE+w@mail.gmail.com>
References: <20171116171735.1474.30450@wrigleys.postgresql.org>
	<CAKFQuwZYLRkGH2wisFk74rSRnOt4qwM+LW8C3t+uZSr+thuTmw@mail.gmail.com>
	<54c57675-f673-3f8e-d7d7-b5c61943f9fc@2ndquadrant.com>
	<CAKFQuwb2QgiMA=aWXpHkDmQSPWnO=mDJArX-UozddmQf8EoE+w@mail.gmail.com>

On 2/2/18 17:05, David G. Johnston wrote:
>     What does "an explicit database name is not found" mean?
> 
> ​A name was not supplied to the psql command either as the first
> non-option argument, via the --dbname command line option, in the
> connection URI (possibly indirectly via a pg_service.conf entry), or via
> the PGDATABASE environment variable.

OK, clarified that a bit further.  Actually, an environment variable
does not take any effect for this.

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




view thread (6+ messages)

Message-ID: <f8049805-b9f7-f3e0-307d-2805f3e834d4@2ndquadrant.com>
Permalink:  ../f8049805-b9f7-f3e0-307d-2805f3e834d4@2ndquadrant.com/
Also on:    postgresql.org/message-id/f8049805-b9f7-f3e0-307d-2805f3e834d4@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: <f8049805-b9f7-f3e0-307d-2805f3e834d4@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