psql (PostgreSQL) 9.0.10
contains support for command-line editing
