## Laetitia Avrot (laetitia.av...@gmail.com): > For my customer, their use case is to be able from an SQL client to double > check they're on the right host before doing things that could become a > production disaster.
Why not use cluster_name for that? Even if it may not be relevant for their setup, there might be multiple clusters on the same host (multiple clusters with the same hostname) or you database could be hiding behind some failover/loadbalancer mechanism (multiple hostnames in one cluster), thus using the hostname to identify the cluster is totally not universal (the same goes for the monitoring/metrics stuff). And there's of course inet_server_addr(), if you really need to double-check if you're connected to the right machine. Regards, Christoph -- Spare Space.