I determined that this issue was caused by something (a large error message relating to failed delete caused by an integrity issue) which I erroneously pasted into the psql terminal. I was able to get around the problem by deleting my .pg_history file.
Perhaps it is more accurate that this is a problem with termcap? -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5899-Memory-corruption-when-running-psql-tp3398967p3408178.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs