Hello,
I have released a new PostgreSQL extension:
pg_readonly that allows to set all cluster databases read-only.
https://www.pgxn.org/dist/pg_readonly/0.0.1/
https://github.com/pierreforstmann/pg_readonly
Please use the projects Github Issues for feedback.
Thank you
Pierre Forstmann