CREATE DATABASE shop;
CREATE USER viewer;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO viewer;
CREATE TABLE category( name VARCHAR(70));
ALTER USER viewer;
INSERT INTO category(name) VALUES ('food'); --ok. no error
SELECT datname, datacl FROM pg_database;
shop | {=Tc/postgres,postgres=CTc/postgres}