How can I set the application name when connection to Postgres with the psqLODBC driver?
You get the application name from pg_stat_activity.application_name.
I tried different Parameters in the connection string.
APP=...; application_name=...; APP_NAME=... in all different variations.
Nothings works and pg_stat_activity.application_name always returns an empty string.
set application_name = 'doev';after the connection is establishedapplication_name=...would be the correct syntax in a regular connection string , but those semicolons and upper-case letters must be a windows thing - what name are you trying to set?