Is it possible to restrict my connection to a database through the psql client to be read only. I.E. The role using to connect to the database has full privileges on it, but I want to restrict some of my connections to being read-only.
Is this possible or do I have to simply create a new database role with my desired privileges.
ALTER USER username set default_transaction_read_only = on;
for this, but definetely creating a new user is better (because user can "swith off" ro transaction)