Re: postgresql rookie needs help initial setup help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: barry kimelman <perlmaster56(at)gmail(dot)com>
Cc: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: postgresql rookie needs help initial setup help
Date: 2020-01-17 21:39:35
Message-ID: 17967.1579297175@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

barry kimelman <perlmaster56(at)gmail(dot)com> writes:
> Now I want to be able to create a non administrator user so I tried the
> following:
> createuser --password -U postgres myusername
> I was prompted for the password for "postgres" but I was not prompted for
> the password for the new user.

I think the option you wanted was

-P, --pwprompt assign a password to new role

This is different from --password, which prompts you for your *own*
password in order to connect to the server. Usually the only reason
to bother with that one is if you're writing some kind of script and
you would like it to prompt always, whether or not a password would
really be required.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message barry kimelman 2020-01-22 14:51:58 postgresql rookie needs help with system catalog
Previous Message barry kimelman 2020-01-17 21:21:52 postgresql rookie needs help initial setup help