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