May 2019
Intermediate to advanced
600 pages
20h 46m
English
Privileges can be granted for objects in a schema using the GRANT command, as follows:
GRANT SELECT ON ALL TABLES IN SCHEMA sharedschema TO PUBLIC;
However, this will only affect tables that already exist. Tables that are created in the future will inherit privileges defined by the ALTER DEFAULT PRIVILEGES command, as follows:
ALTER DEFAULT PRIVILEGES IN SCHEMA sharedschemaGRANT SELECT ON TABLES TO PUBLIC;
Read now
Unlock full access