psql: FATAL: Peer authentication failed for user
The order of rules in pg_hba.conf matters.
Trying to connect to postgresql database with a standard user fails with psql: FATAL: Peer authentication failed fr user "user1".
The second line of pg_hba.conf makes your connection attempt fail:
local al...
hashnode.adityakumar.xyz1 min read