grant all permissions to table postgres code example
Example 1: list all permissions on a table in postgres
SELECT grantee, privilege_type
FROM information_schema.role_table_grants
WHERE table_name='mytable'
Example 2: grant schema permissions postgres
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schema_name TO username;