This procedure seems to be working well enough now:
https://github.com/hackoregon/civic-devops/blob/master/docs/HOWTO-enable-readonly-database-user.md
And I'm going to have to re-run it every time I "restore" (aka DROP and CREATE) a database, which is time-consuming, tedious and makes me wonder if I've ever fat-fingered something (e.g #152 ).
It would be awesome to have a reusable script - I'd be happy with with either something I can run from psql or something from the SQL interface of PGAdmin.
This procedure seems to be working well enough now:
https://github.com/hackoregon/civic-devops/blob/master/docs/HOWTO-enable-readonly-database-user.md
And I'm going to have to re-run it every time I "restore" (aka DROP and CREATE) a database, which is time-consuming, tedious and makes me wonder if I've ever fat-fingered something (e.g #152 ).
It would be awesome to have a reusable script - I'd be happy with with either something I can run from
psqlor something from the SQL interface of PGAdmin.