{"Entry":{"collection":"func","key":"inet-client-port","name":"inet_client_port","aliases":[],"metadata":{"changed_in":["8.1"],"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":false,"from":"8.0","group_changed":null,"signatures":{"added":["inet_client_port ( ) → int"],"removed":["inet_client_port ( ) → int4"]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"27e4c4591daa2a2955f951dc88506b7a295f75cf40300af963c2c6ce0d1d522e","first_version":"8.0","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.099208+08:00","last_version":"20","name":"inet_client_port","name_key":"inet_client_port","position":28027,"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_port () → integer","signature_count":1,"slug":"inet-client-port","source_rev":"b7bd9cda","summary":"Returns the IP port number of the current client, or NULL if the current connection is via a Unix-domain socket.","summary_zh":""}},"Definition":{"Collection":"func","Key":"inet-client-port","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"inet-client-port","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the IP port number of the current client, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP port number 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 port number of the current client, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP port number 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_port\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"inet_client_port () → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"inet-client-port","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"inet_client_port","Summary":"返回当前客户端的IP端口号，如果当前连接是通过Unix 域套接字则返回NULL。","BodyHTML":"返回当前客户端的IP端口号，如果当前连接是通过Unix 域套接字则返回\u003ccode\u003eNULL\u003c/code\u003e。\u003cpre\u003einet_client_port () → integer\u003c/pre\u003e返回当前客户端的IP端口号，如果当前连接是通过Unix 域套接字则返回\u003ccode\u003eNULL\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"5a633c3f4fafe2ac8ef7fb538b99548b3f08345bae8fa3d641a426bcfc7de467","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":"integer","text":"inet_client_port () → integer","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":"89103a45678e5cc6011c795e5f546cfd9299e7c57d560db3ae70be74bdfb27e7","Text":"inet_client_port () → integer","Returns":"integer","Payload":{"description":"Returns the IP port number of the current client, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP port number 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_port\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"inet_client_port () → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
