Werk #17360: mk_postgres.py: Enable using a system wide PGPASSFILE

Component Checks & agents
Title mk_postgres.py: Enable using a system wide PGPASSFILE
Date Oct 14, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The PGPASSFILE environment variable is only overwritten by the instance pg_passfile when it is not empty. It is possible now to use a system-wide PGPASSFILE environment variable.

To the list of all Werks