如果 PostgreSQL 是使用 OpenLDAP 构建的,则可以通过 DNS SRV 发现 LDAP 服务器。
https://postgresql.ac.cn/docs/12/auth-ldap.html