pub fn save_new_pgpass_file(
pgpass_idx_lines: Vec<(usize, &str)>,
updated_conn_params: &ConnectionParams,
pgpass_path: &Path,
) -> Result<()>Expand description
Saves updated PostgreSQL .pgpass to a temporary file, replaces the original, and sets permissions.
ยงErrors
- A filesystem operation (open/read/write/remove) fails.