Use HostsFileName everywhere

Zsolt Parragi <zsolt.parragi@percona.com>

From: Zsolt Parragi <zsolt.parragi@percona.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Daniel Gustafsson <daniel@yesql.se>
Date: 2026-06-18T06:10:14Z
Lists: pgsql-hackers

Attachments

Hello!

I noticed that 3 error messages hardcode pg_hosts.conf instead of
using the user-configured filename.

Attached patch fixes these occurrences.