PostgreSQL + Rails: is it possible to have a write-only database user in PG?
问题 I am building a JSON API in Ruby on Rails. I want to have write-only user accounts that are supposed to feed data to the system but who should not be allowed to read from it. In order to achieve an extra layer of security, I'd like to enforce this rule at the database level. The idea is to have a "writer" type of user which uses a separate connection to the database. This connection should be allowed to insert / update / delete but not to select. I have everything set up nicely but