PostgreSQL 9.0 has the psql option --no-password/-w, which is what you want to use. It should be OK to also use this in older versions because they will just fail and print nothing, which is no worse than the disabled state now.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/164772 Title: bash_completion fails for psql when databases require a password -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs