{"Entry":{"collection":"func","key":"inet-client-addr","name":"inet_client_addr","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.0"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"f8e37e774147dbeb754c3895e5a1bb53736f4d8f38d0e96dfae78c097e41d700","first_version":"8.0","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.096697+08:00","last_version":"20","name":"inet_client_addr","name_key":"inet_client_addr","position":28026,"present_in":["8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"inet_client_addr () → inet","signature_count":1,"slug":"inet-client-addr","source_rev":"b7bd9cda","summary":"Returns the IP address of the current client, or NULL if the current connection is via a Unix-domain socket.","summary_zh":""}},"Definition":{"Collection":"func","Key":"inet-client-addr","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"inet-client-addr","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the IP address of the current client, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP address of the current client, or \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the current connection is via a Unix-domain socket.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Returns the IP address of the current client, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP address of the current client, or \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the current connection is via a Unix-domain socket.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003einet_client_addr\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einet\u003c/code\u003e","returns":"inet","text":"inet_client_addr () → inet","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"inet-client-addr","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"inet_client_addr","Summary":"返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回NULL。","BodyHTML":"返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回\u003ccode\u003eNULL\u003c/code\u003e。\u003cpre\u003einet_client_addr () → inet\u003c/pre\u003e返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回\u003ccode\u003eNULL\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"fe0968bf0094a3bc6debe413654e15e226652b897f52bdb8bdb370fe3891eed7","Payload":{"description_zh":"返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回NULL。","description_zh_html":"返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","signatures":[{"description_zh":"返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回NULL。","description_zh_html":"返回当前客户端的 IP 地址；如果当前连接通过 Unix 域套接字建立，则返回\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","returns":"inet","text":"inet_client_addr () → inet","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"8f826cf78ce6802215eecbbb16e770f01cad22d9dd0dede934a06a31e7aa9ee0","Text":"inet_client_addr () → inet","Returns":"inet","Payload":{"description":"Returns the IP address of the current client, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP address of the current client, or \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the current connection is via a Unix-domain socket.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003einet_client_addr\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einet\u003c/code\u003e","returns":"inet","text":"inet_client_addr () → inet","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
