Skip to content

Instantly share code, notes, and snippets.

@gfodor
Created September 6, 2016 08:13
Show Gist options
  • Save gfodor/c360683f25f55497c8c657255fd0e0f8 to your computer and use it in GitHub Desktop.
Save gfodor/c360683f25f55497c8c657255fd0e0f8 to your computer and use it in GitHub Desktop.
psql (9.6rc1)
Type "help" for help.
test=# create role guy;
CREATE ROLE
test=# revoke all privileges on schema public from guy;
REVOKE
test=# revoke all on all tables in schema public from guy;
REVOKE
test=# set role guy;
SET
test=> create table foo (x int);
CREATE TABLE
test=> drop table foo;
DROP TABLE
test=> \q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment