Skip to content

Instantly share code, notes, and snippets.

@noherczeg
Last active August 29, 2015 14:13
Show Gist options
  • Save noherczeg/c05c86ae31278beddc51 to your computer and use it in GitHub Desktop.
Save noherczeg/c05c86ae31278beddc51 to your computer and use it in GitHub Desktop.
create db, schema, user, search path correctly, finally...
$ su - postgres
$ psql
# CREATE DATABASE hng;
# \connect hng;
# CREATE SCHEMA IF NOT EXISTS hng AUTHORIZATION hng;
# GRANT ALL PRIVILEGES ON DATABASE hng TO hng;
# ALTER USER hng SET SEARCH_PATH TO hng;
# ALTER SCHEMA hng OWNER TO hng;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment