PostgreSQL's Peer authentication failed, measured on the Debian and Ubuntu packages: why sudo -u postgres works, -h localhost, pg_ident.conf and psycopg2.