System roles – what, why, how?

from blog select * from depesz;, | ↗ original
Not everyone knows, but at since PostgreSQL 9.6, we have some built-in roles. Of course, there is always superuser (usually called postgres), but I'm not talking about it. I'm talking about magical roles that have names starting with pg_. Over the years we got more and more of them: pg_signal_backend (since PostgreSQL 9.6) pg_monitor (since …...