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

Make username default to current login name #1024

Closed
WGH- opened this issue Apr 26, 2023 · 1 comment · Fixed by #1059
Closed

Make username default to current login name #1024

WGH- opened this issue Apr 26, 2023 · 1 comment · Fixed by #1059

Comments

@WGH-
Copy link

WGH- commented Apr 26, 2023

This is the way libpq (and other libraries based on it) does this:

At least some third-party libraries not based on libpq do that as well:

I think it would make sense to do it here for compatibility with other libraries.

@WGH-
Copy link
Author

WGH- commented Apr 26, 2023

Maybe I'll submit a PR for this in following weeks

ISibboI added a commit to ISibboI/rust-postgres that referenced this issue Aug 19, 2023
This mimics the behaviour of libpq and some other libraries (see sfackler#1024).
This commit uses the `whoami` crate, and thus goes as far as defaulting the user to the executing process' user name on all operating systems.
lukoktonos pushed a commit to readysettech/rust-postgres that referenced this issue Aug 31, 2023
This mimics the behaviour of libpq and some other libraries (see sfackler#1024).
This commit uses the `whoami` crate, and thus goes as far as defaulting the user to the executing process' user name on all operating systems.
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 a pull request may close this issue.

1 participant