Re: Adding a pg_servername() function

Lætitia Avrot <laetitia.avrot@gmail.com>

From: Laetitia Avrot <laetitia.avrot@gmail.com>
To: GF <phabriz@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter@eisentraut.org>, Christoph Moench-Tegeder <cmt@burggraben.net>, Matthias van de Meent <boekewurm+postgres@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2023-08-10T07:06:31Z
Lists: pgsql-hackers
Le mer. 9 août 2023 à 17:32, GF <phabriz@gmail.com> a écrit :

>
> Would it be less problematic if the function were called pg_gethostname()?
> @Laetitia: why did you propose that name? maybe to avoid clashes with some
> extension out there?
>
>
I used that name to be kind of coherent with the inet_server_addr(), but I
see now how it is a bad decision and can add confusion and wrong
expectations. I think pg_gethostname() is better.