| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
| Cc: | Matthias Apitz <guru(at)unixarea(dot)de>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: psql's default database on connect (our internal ref. SRP-30861) |
| Date: | 2021-08-06 07:16:10 |
| Message-ID: | CAKFQuwam5y7XjBMRRLM3eyvR1+V4CRP6SbHYj+51atGP8cXgrw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Friday, August 6, 2021, Guillaume Lelarge <guillaume(at)lelarge(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Matthias Apitz | 2021-08-06 07:25:29 | Re: psql's default database on connect (our internal ref. SRP-30861) |
| Previous Message | Guillaume Lelarge | 2021-08-06 07:07:56 | Re: psql's default database on connect (our internal ref. SRP-30861) |