What’s the default superuser username/password for postgres after a new install?

If you just installed postgresql 8.x/9.x and it has never asked you to create a superuser/password here is how to reset the default superuser and its password:

sudo -u postgres psql postgres
# \password postgres
Enter new password:

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.