I want to log into my database with
psql -U postgres
from my user 'pi' for example.
To achive this I edited my pg_hba.conf to this (method from peer to md5):

My problem is that my cronjob,
* * * * * psql -d db_name -c "insert into timestamps values (now());"
by the user postgres doesn't work anymore, because I now need to log in with the password of every account. Postgres rightly warns, that this will happen. Can I activate both methods (md5 and peer), to log into postgres from every user and have my cronjobrunning?