postgresql_16:7.1.148.3 Examples
PostgreSQL 16 > Reference > SQL Commands > GRANT > Examples
Grant insert privilege to all users on table films: GRANT INSERT ON films TO PUBLIC;
Grant all available privileges to user manuel on view kinds: GRANT ALL PRIVILEGES ON kinds TO manuel; Note that while the above will indeed grant all privileges if executed by a superuser or the owner of kinds, when executed by someone else it will only grant those permissions for which the someone else has grant options.
Grant membership in role admins to user joe: GRANT admins TO joe;