Place in .bashrc so that in psql (PostgreSql's interactive terminal) you can navigate result sets that are wider than your terminal using cursor keys.