Re: psql's default database on connect (our internal ref. SRP-30861) - Mailing list pgsql-general

From David G. Johnston
Subject Re: psql's default database on connect (our internal ref. SRP-30861)
Date
Msg-id CAKFQuwam5y7XjBMRRLM3eyvR1+V4CRP6SbHYj+51atGP8cXgrw@mail.gmail.com
Whole thread Raw
In response to Re: psql's default database on connect (our internal ref. SRP-30861)  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgsql-general
On Friday, August 6, 2021, Guillaume Lelarge <guillaume@lelarge.info> wrote:
If unset, it will use the PostgreSQL user name also as the database name.

This is true, but its not what the docs says:

psql usage doc:

“The default user name is your operating-system user name, as is the default database name.”

Specifying -U doesn’t change one’s operating-system name, and the “as is” language is shorthand for “the default database name is your operating-system user name”.

David J.

pgsql-general by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: psql's default database on connect (our internal ref. SRP-30861)
Next
From: Matthias Apitz
Date:
Subject: Re: psql's default database on connect (our internal ref. SRP-30861)