Problems while connecting to a newly installed PostgreSQL 9.2 on same box as 9.1
You need to use

psql -p 5433


instead of

psql -h localhost -p 5433


because the default Ubuntu access control setup has password authentication over TCP/IP but peer authentication over Unix-domain sockets.