Skip to content

Instantly share code, notes, and snippets.

@marsam
Created August 29, 2011 03:15
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 marsam/1177710 to your computer and use it in GitHub Desktop.
Save marsam/1177710 to your computer and use it in GitHub Desktop.
Users in PostgreSQL
CREATE USER project_user
WITH PASSWORD 'password';
CREATE DATABASE project;
GRANT ALL PRIVILEGES ON DATABASE project
TO project_user;
DROP DATABASE project;
DROP USER project_user;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment