Feature request #12944

PostGIS: use fallback_application_name instead of application_name

Added by Jerome P about 9 years ago. Updated almost 7 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Data Provider/PostGIS
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:21024

Description

In the source code of QGIS 2.8, I can see that after opening a PostGIS connection, QGIS calls:
SET application_name='QGIS'
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).

History

#1 Updated by Jürgen Fischer about 9 years ago

  • Tracker changed from Bug report to Feature request

#2 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#3 Updated by Jürgen Fischer almost 7 years ago

  • Assignee deleted (Jürgen Fischer)

Also available in: Atom PDF