=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE
GRANT privilege_list | ALL
ON table_name
TO role_name;
Code language: PostgreSQL SQL dialect and PL/pgSQL (pgsql)
#must be owner of table your_table
=# ALTER USER role_specification WITH OPTION1 OPTION2 OPTION3;