Could it be the role=group_read_only? The fact that user1 is a member of group_read_only is changing current_user variable? I’m using a clean psql docker container everytime I need to connect to the database, so, I don’t think it’s related to psql. \drds List of settings Role | Database | Settings --------------+--------------+----------------------------------- user1 | mydb | role=group_read_only rdsadmin | rdsadmin | log_min_messages=panic rdsadmin | | TimeZone=utc + | | log_statement=all + | | log_min_error_statement=debug5 + | | log_min_messages=panic + | | exit_on_error=0 + | | statement_timeout=0 + | | role=rdsadmin + | | auto_explain.log_min_duration=-1 + | | temp_file_limit=-1 + | | search_path=pg_catalog, public + | | pg_hint_plan.enable_hint=off + | | default_transaction_read_only=off + | | default_tablespace= | rdsadmin | auto_explain.log_min_duration=-1 (4 rows) Thanks. Murillo. De: Tom Lane Murillo corvino rocha <murillo_corvinorocha@xxxxxxxxxxx> writes: |