Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, August 6, 2021, Guillaume Lelarge <guillaume@xxxxxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux