Skip to content

Instantly share code, notes, and snippets.

@uris77
Created November 25, 2015 17:17
Show Gist options
  • Save uris77/3befe30001de01e37e37 to your computer and use it in GitHub Desktop.
Save uris77/3befe30001de01e37e37 to your computer and use it in GitHub Desktop.
Postgres Tips

Force a user to have a default schema other than public:

ALTER USER <user> SET search_path=<schema>;

Grant permissions to a schema for a user:

GRANT ALL PRIVILEGES ON SCHEMA <schema> to <user>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment