1

PostgreSQL set_user Extension Module with a token could be an option. You could make PgBouncer reset the role back using server_reset_query.


Only top voted, non community-wiki answers of a minimum length are eligible