Set read-only for 1 table only in postgresql
1 answer
I saw the answer, I hope it is helpful
REVOKE INSERT, UPDATE, DELETE, TRUNCATE ON ALL TABLES IN SCHEMA public FROM public, <target_role>;
Maybe add more roles to the list, but don't forget the public's role. Maybe add more schemas to the list, but don't forget that the schema is publicly available.
+1
source to share