CREATE ROLE sathumper WITH 
    CREATEROLE 
    CREATEDB
    LOGIN 
    PASSWORD '3911';

CREATE SCHEMA "system";
GRANT USAGE, CREATE ON SCHEMA "system" TO sathumper;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA "system" TO sathumper;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA "system" TO sathumper;

ALTER DEFAULT PRIVILEGES IN SCHEMA "system"
GRANT ALL PRIVILEGES ON TABLES TO sathumper;
 
SELECT usename, useconfig 
FROM pg_user 
WHERE useconfig IS NOT NULL 
  AND useconfig::text LIKE '%search_path%'
  

ALTER ROLE sathumper1 SET search_path='ss32'
 
   
   