We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At present, the user name is obtained from the USER environment variable:
USER
https://github.com/allenap/pgdo/blob/e9c001bec09f419fb75ebdfc96f1dc555613ad06/pgdo-lib/src/cluster.rs#L298C1-L307
But this isn't always set, especially in containers. We could obtain this more reliably from the OS directly, e.g.:
use nix::unistd::{getuid, User}; let user: Option<User> = User::from_uid(getuid()); let name: Option<String> = user.map(|user| user.name);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
At present, the user name is obtained from the
USER
environment variable:https://github.com/allenap/pgdo/blob/e9c001bec09f419fb75ebdfc96f1dc555613ad06/pgdo-lib/src/cluster.rs#L298C1-L307
But this isn't always set, especially in containers. We could obtain this more reliably from the OS directly, e.g.:
The text was updated successfully, but these errors were encountered: