{"Entry":{"collection":"func","key":"inet-server-port","name":"inet_server_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_server_port ( ) → int"],"removed":["inet_server_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":"94b05f17a81f5b1fdb82d558bc8d000fcd87a9b595e968175e98992d05e8cbf5","first_version":"8.0","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.104718+08:00","last_version":"20","name":"inet_server_port","name_key":"inet_server_port","position":28029,"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_server_port () → integer","signature_count":1,"slug":"inet-server-port","source_rev":"b7bd9cda","summary":"Returns the IP port number on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket.","summary_zh":""}},"Definition":{"Collection":"func","Key":"inet-server-port","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"inet-server-port","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the IP port number on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP port number on which the server accepted the current connection, 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 on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP port number on which the server accepted the current connection, 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_server_port\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"inet_server_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-server-port","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"inet_server_port","Summary":"返回服务器接受当前连接的IP端口号，如果当前连接是通过Unix 域套接字则返回NULL。","BodyHTML":"返回服务器接受当前连接的IP端口号，如果当前连接是通过Unix 域套接字则返回\u003ccode\u003eNULL\u003c/code\u003e。\u003cpre\u003einet_server_port () → integer\u003c/pre\u003e返回服务器接受当前连接的IP端口号，如果当前连接是通过Unix 域套接字则返回\u003ccode\u003eNULL\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"a04bcff284be09d8ee61bddc39e42acc30a11ceb64a81fa70c38f165a2e5013e","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_server_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":"b092ab8ba15e2846d92e47644943ce125b9b78216ac76138f731ae01dc57af06","Text":"inet_server_port () → integer","Returns":"integer","Payload":{"description":"Returns the IP port number on which the server accepted the current connection, or NULL if the current connection is via a Unix-domain socket.","description_html":"Returns the IP port number on which the server accepted the current connection, 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_server_port\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"inet_server_port () → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
