Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to PostgreSQL via OGR could use default username #12100

Closed
qgib opened this issue Oct 28, 2009 · 4 comments
Closed

Connecting to PostgreSQL via OGR could use default username #12100

qgib opened this issue Oct 28, 2009 · 4 comments
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 28, 2009

Author Name: grasslandtom - (grasslandtom -)
Original Redmine Issue: 2040

Redmine category:data_provider
Assignee: nobody -


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.

@qgib
Copy link
Contributor Author

qgib commented Oct 28, 2009

Author Name: Jürgen Fischer (@jef-n)


AFAICS if you enter a username in the [[PostGIS]] connection it's used to connect in both cases. If you don't, you are prompted for a password (but no username) in both cases - which probably is a bug in itself, but no difference.

@qgib
Copy link
Contributor Author

qgib commented Oct 28, 2009

Author Name: grasslandtom - (grasslandtom -)


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

@qgib
Copy link
Contributor Author

qgib commented Oct 29, 2009

Author Name: grasslandtom - (grasslandtom -)


Can anybody confirm what is described in the previous comment?

If not I would resolve this as invalid as I am now unable to connect to [[PostGIS]] at all. The described behaviour might be part of the weird behaviour I see now.

@qgib
Copy link
Contributor Author

qgib commented Mar 7, 2010

Author Name: Jürgen Fischer (@jef-n)


fixed in c7d632e (SVN r12923).


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant