Now I'm fighting with:
psycopg2.OperationalError: FATAL: remaining connection slots are reserved for non-replication superuser connections"
Maybe it could be a good idea to catch that exception and "send to zabbix" some:
"alarm"?
Or at least return other return code on connection error?