Skip to content

Instantly share code, notes, and snippets.

@MirkoCindric
Created August 3, 2012 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MirkoCindric/3245294 to your computer and use it in GitHub Desktop.
Save MirkoCindric/3245294 to your computer and use it in GitHub Desktop.
Setting up users on Postgres
psql template1
CREATE USER develop WITH PASSWORD 'develop';
CREATE USER postgres WITH PASSWORD 'postgres';
CREATE USER test WITH PASSWORD 'test';
ALTER USER develop CREATEUSER CREATEDB;
ALTER USER test CREATEUSER CREATEDB;
ALTER USER postgres CREATEUSER CREATEDB;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment