public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: David G. Johnston <[email protected]>
Cc: Arbol One <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Password forgotten
Date: Tue, 23 Apr 2024 10:19:17 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwa1n3qAsZOZ6bq+3gKYC=C_BEaiV9+E4_RE=swROV147Q@mail.gmail.com>
References: <DM8PR02MB79426EC52D426F6E42B33757BA112@DM8PR02MB7942.namprd02.prod.outlook.com>
<CAKFQuwa1n3qAsZOZ6bq+3gKYC=C_BEaiV9+E4_RE=swROV147Q@mail.gmail.com>
"David G. Johnston" <[email protected]> writes:
> On Tuesday, April 23, 2024, Arbol One <[email protected]> wrote:
>> psql-16 asks for the password, which I have forgotten.
>> Is there a way I can retrieve this master password?
> Nope. You need to login using a method that doesn’t require a password
> then change the password. See pg_hba.conf for authentication options.
> Usually connecting via local and peer authentication is the default option.
If all else fails, shut the server down and start it in single-user
mode. That will let you in as a superuser and you can use ALTER USER
to reset the role's password.
regards, tom lane
view thread (2+ messages)
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: Password forgotten
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