Skip to content

Conversation

AndrewJackson2020
Copy link
Contributor

This PR attempts to implement connection service file functionality into asyncpg.

Connection service files are a libpq feature that allows details of postgres connection strings to be stored in a file that is referenced via a service parameter in the connection string. This makes it very easy to ensure/enforce consistent connection strings across a codebase.

https://www.postgresql.org/docs/17/libpq-pgservice.html

AndrewJackson2020 and others added 3 commits March 19, 2025 15:54
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
@AndrewJackson2020
Copy link
Contributor Author

Another complication wrt the connection service functionality: apparently connection service files also allow ldap lookups.

https://www.postgresql.org/docs/current/libpq-ldap.html

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
@AndrewJackson2020
Copy link
Contributor Author

I believe the test failure is due to a flaky test. Please let me know if there are any other changes that need to be made to this PR.

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

Successfully merging this pull request may close these issues.

2 participants