From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | 毛毛 <krave(at)163(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: How to use createdb command with newly created user? |
Date: | 2024-06-23 19:00:37 |
Message-ID: | 987119.1719169237@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Sun, Jun 23, 2024, 11:43 毛毛 <krave(at)163(dot)com> 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
From | Date | Subject | |
---|---|---|---|
Next Message | 毛毛 | 2024-06-23 19:22:19 | Re:Re: How to use createdb command with newly created user? |
Previous Message | David G. Johnston | 2024-06-23 18:47:44 | Re: How to use createdb command with newly created user? |