I would like to run a small logon script on my postgres server. If a user with a certain username connects, then I want to check the app name of the session, and if it contains a certain value I want to set idle_in_transaction_session_timeout for that session.
I fail to find where to put logon scripts/commands in postgres. Any ideas? TY!