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

Use PQconnectdbParams instead of PQsetdbLogin #26

Open
Cito opened this issue Feb 15, 2020 · 0 comments
Open

Use PQconnectdbParams instead of PQsetdbLogin #26

Cito opened this issue Feb 15, 2020 · 0 comments
Milestone

Comments

@Cito
Copy link
Member

Cito commented Feb 15, 2020

Currently, connections in the classic and DB API 2 modules are made with PQsetdbLogin which only allows a limited number of parameters. Additional parameters must be sent as connection string or connection URI, but they cannot be passed as parameters (the DB API 2 module fakes that by creating a connection string from keyword arguments).

We may want to switch to the newer PQconnectdbParams to properly send any number of parameters.

When doing so, we should take care that everything is properly documented, backward compatible, and particularly the default values are set properly and the same as before.

(copied from Trac ticket 79, created 2019-04-24)

@Cito Cito added this to the 6.0 milestone Feb 15, 2020
@Cito Cito modified the milestones: 7.0, 6.1 Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant