Feature request #12944
PostGIS: use fallback_application_name instead of application_name
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||21024|
In the source code of QGIS 2.8, I can see that after opening a PostGIS connection, QGIS calls:
PostGIS/PostgresQL offers a second variable called "fallback_application_name" (See http://www.postgresql.org/docs/9.3/static/libpq-connect.html). Only "fallback_application_name" can be overwritten by a user. "application_name" can't be overwritten.
QGIS should use this second variable instead of the first one so that it is possible for the user to override the value (for instance using the environment variable PGAPPNAME).
This would allow to configure to QGIS to replace "QGIS" through something like "QGIS for user1" (I would get the username from the operating system, set the environment variable and then start QGIS).