新建test用户
CREATE USER test WITH PASSWORD '123456';
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO 用户名;
grant usage on schema public to test;
grant all privileges on all tables in schema public to test;
grant all privileges on all sequences in schema public to test;
grant select,insert,update,delete on all tables in schema public to test;
grant all on schema public to test;