On Windows and OS X, the default password is postgres. But on Linux systems, there is no default password set.
To set the default password: Run the psql command from the postgres user account:
-
sudo -u postgres psql postgres
-
Set the password:
-
\password postgres