Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 32
    This can also be used to change passwords for other users: \password username Commented Apr 16, 2018 at 15:59
  • It does not find the \password (on Linux) Commented Feb 23, 2021 at 11:25
  • 1
    @Coliban, you need to be on the psql prompt when you run it. Commented Feb 24, 2021 at 16:23
  • @Andy: yes, but psql didnt connected to DB for whatever reason. I´ve installed a new version with new passwords, now it is ok. Thank you Commented Feb 25, 2021 at 10:42
  • 1
    this worked for me, i couldn't run the ALTER USER command for some reason. Commented Apr 21, 2022 at 2:54