forked from terraforming-mars/terraforming-mars
-
Notifications
You must be signed in to change notification settings - Fork 0
PostgreSQL notes
Robert Konigsberg edited this page May 17, 2022
·
1 revision
https://chartio.com/resources/tutorials/how-to-set-the-default-user-password-in-postgresql/
PostgreSQL database passwords are separate from operating system user passwords. The password for each database user is stored in the pg_authid system catalog. Passwords can be managed with the SQL commands
CREATE ROLE
andALTER ROLE
, e.g.,CREATE ROLE foo WITH LOGIN PASSWORD 'secret'
, or the psql command\password
. If no password has been set up for a user, the stored password is null and password authentication will always fail for that user.
https://stackoverflow.com/questions/37861262/create-multiple-postgres-instances-on-same-machine