bash_completion fails for psql when databases require a password
Bug #164772 reported by
Richard G. Clegg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Mika Fischer |
Bug Description
Binary package hint: bash
Because in many circumstances autocompletion on psql triggers database lookups, the command fails in an unexpected way if the postgres database by default requires a password. The solution is to remove _pg_users and _pg_databases routines from bash_completion.
Related branches
Changed in bash-completion: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
I've written the PostgreSQL developers about a way to avoid the password prompt. Let's see what they answer.
Since this is useful and works in the default configuration, I'd tend to leave it on for now...