public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: David G. Johnston <[email protected]>
Cc: 毛毛 <[email protected]>
Cc: [email protected]
Subject: Re: How to use createdb command with newly created user?
Date: Sun, 23 Jun 2024 15:00:37 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwb-Kp4dnE+EM2WCeJ8tuai-Lx_Ja2Gb8mEOkNRe9h8Vww@mail.gmail.com>
References: <[email protected]>
<CAKFQuwb-Kp4dnE+EM2WCeJ8tuai-Lx_Ja2Gb8mEOkNRe9h8Vww@mail.gmail.com>
"David G. Johnston" <[email protected]> writes:
> On Sun, Jun 23, 2024, 11:43 毛毛 <[email protected]> wrote:
>> Then I run the following command on PowerShell on Windows 10:
>> createdb -U Baba -W test_db
>> But no mater how I tried, the password always failed.
> You named the user "baba" all lower-case but your createdb command uses
> Baba and in the OS the case-folding of identifiers does not happen. Baba
> != baba is your issue.
FWIW, I think using -W in interactive commands is a bad habit
that you should drop. Because it forces a password prompt, it
easily confuses people into thinking that their problem is
password-related whether it actually is or not.
(I notice that with createdb, it actually seems to force *two*
password prompts when there is something wrong. That's unlike
what happens with psql; maybe we should try to improve that.
But on the other hand, it's hard to get excited about putting
work into improving a behavior that we deprecate using at all.)
regards, tom lane
view thread (5+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: How to use createdb command with newly created user?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox