-- 整个数据库赋权 tpch1s=# grant all privileges on database tpch1s TO myuser; -- 某个表赋权 tpch1s=# GRANT ALL PRIVILEGES ON lineitem TO myuser; -- 所有表赋权 tpch1s=# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO myuser;