Feature request #2040
Connecting to PostgreSQL via OGR could use default username
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||12100|
Adding a PostGIS-layer via the "Add PostGIS Layer"-button does not require entering a username for the connection. This is different for a connection via the button "Add Vector Layer", where not entering an explicit username raises an error.
Maybe the behaviour of "Add PostGIS Layer" could be adopted to "Add Vector Layer" when connecting to a PostgreSQL database.
#2 Updated by grasslandtom - about 11 years ago
To be more specific here the steps to reproduce what I meant:
Click on "Add PostGIS Layer" -> New, enter name of database to which you can connect on the console without specifying a user name (thus which accepts your Unix user name) -> Test Connect
=> this is successful in my case.
Click Cancel -> close.
Click "Add Vector Layer" -> Database -> New, select PostgreSQL, type the same database name as above -> Test Connect
=> this fails complaining about a missing PostgreSQL-user name.
Click OK, enter your Unix user name -> Test Connect
=> successful in my case