I have a use case where I want to create a user which should have access on select for public schema and Views Creation On public schema but not table creation User can create a new view but not table
`--by admin user
CREATE ROLE view_creator;
GRANT CREATE ON SCHEMA public TO view_creator;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO view_creator;
CREATE USER test WITH PASSWORD 'test123';
GRANT view_creator TO test;
-- by user test
create view test_2 as select * from public.users_test -- This should
work
CREATE TABLE public.users (
id serial4 NOT NULL,
"name" varchar(50) NULL,
age int4 NULL,
CONSTRAINT users_pkey PRIMARY KEY (id)
); --- This should not work`
CREATE: Create objects (including tables) within this schemaas you give him such rights, as far as i know you can't not select what he can create