Search Postgresql Archives

Re: How to determine server's own IP address? inet_server_addr not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 21, 2021 at 4:38 PM Guyren Howe <guyren@xxxxxxxxx> wrote:
The documentation says that inet_server_addr() does this, but on our servers it is returning nothing.

"Returns the IP address on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket."

You will need to demonstrate that the connection you are checking from isn't being made via a Unix-domain socket.

David J.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux