Create readonly session in Postgres / psql

To make the current connection readonly, just run this:

SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY;

Leave a Reply

Your email address will not be published. Required fields are marked *