Re: BUG #14912: Undocumented: 'psql -l' assumes database 'postgresql'not $USER - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #14912: Undocumented: 'psql -l' assumes database 'postgresql'not $USER
Date
Msg-id f8049805-b9f7-f3e0-307d-2805f3e834d4@2ndquadrant.com
Whole thread Raw
In response to Re: BUG #14912: Undocumented: 'psql -l' assumes database 'postgresql'not $USER  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
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


pgsql-bugs by date:

Previous
From: "Mark Scheffer"
Date:
Subject: Re: BUG #15026: Deadlock using GIST index
Next
From: Bob Gailer
Date:
Subject: Re: BUG #15046: non-greedy ignored