Is it possible in Postgresql (v15.7) for a user with multiple roles to specify which role(s) should apply when logging in? For instance, if I were granted the roles l3_support_engineer and reporting_user then when I log in my understanding is that the permissions would be additive and I could do everything that either role could do, which potentially means that e.g. the l3_support_engineer role would give me permissions to delete stuff that the reporting_user would have access to.
In other words, when I am logging in to run reports, can I specify that I want only the reporting_user role to apply so there is zero chance of me running DDL scripts?
The only alternative I can think of at the moment is to have different user accounts for each role (e.g. david_keaveny_reporting), but that adds quite a bit to the admin overhead, as I now have to manage passwords etc for each account.