CREATE TABLE test ( id serial NOT NULL, name varchar, PRIMARY KEY (id) ); GRANT ALL ON TABLE test TO test;