Thread: Get current_user in statistics

Get current_user in statistics

From
th@gesteam.fr
Date:
Hi,

The usename column in pg_stat_activity is the session_user.
Is there a way to get a column with the current_user (different after
the use of SET ROLE)?

Thanks
--
Thierry Hauchard
Gesteam