Function to get the PostgreSQL server host name