On Debian Lenny, I downloaded termcap source fromhttp://ftp.gnu.org/gnu/termcap/ and installed it. Then the error is gone.
--View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5807-psql-fails-to-launch-with-Cannot-read-termcap-database-using-dumb-terminal-settings-Aborted-tp3321689p4424248.htmlSent from the PostgreSQL - bugs mailing list archive at Nabble.com.