A typo in src/backend/libpq/hba.c breaks local ident authenticationin the SO_PEERCRED case. elif is misspelled as elsif for the test.A patch is attached.