Bug report #15706

"Import Vector into PostGIS database" tool does not honour libpq defults

Added by Sandro Santilli about 8 years ago. Updated about 8 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:2.14.7 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23629

Description

I have connection with unspecified host/user to rely on libpq defaults (including env variables).
Using "Import Vector into PostGIS database" tool forces "host= user=" in the URI string, effectively setting them to EMPTY instead of using the environment variable, with the effect of a failed import.

This was already fixed for DBManager (for an example implementation). See #9037

Associated revisions

Revision be3e807d
Added by Sandro Santilli about 8 years ago

[processing] Allow using libpq defaults for host,port,user,pass and dbname

Fixes #15706

Revision 640e10b5
Added by Sandro Santilli about 8 years ago

[processing] Allow using libpq defaults for host,port,user,pass and dbname

Fixes #15706
Includes tests

Revision d63222e6
Added by Sandro Santilli about 8 years ago

[processing] Allow using libpq defaults for host,port,user,pass and dbname

Fixes #15706

History

#1 Updated by Victor Olaya about 8 years ago

Sandro

i made this PR with changes and assigned it to you

https://github.com/qgis/QGIS/pull/3604

Feel free to merge it and close this ticket

#2 Updated by Sandro Santilli about 8 years ago

  • Affected QGIS version changed from 2.16.3 to 2.14.6

2.14.7 is also affected (NOTE: "2.14.7" is missing from "Affected version" list)

#3 Updated by Sandro Santilli about 8 years ago

  • % Done changed from 0 to 30
  • Status changed from Open to In Progress

#4 Updated by Sandro Santilli about 8 years ago

I made another PR which completely avoids adding any default: https://github.com/qgis/QGIS/pull/3607

#5 Updated by Sandro Santilli about 8 years ago

  • Status changed from In Progress to Closed

#6 Updated by Jürgen Fischer about 8 years ago

  • Affected QGIS version changed from 2.14.6 to 2.14.7

Also available in: Atom PDF