{"Entry":{"collection":"func","key":"hostmask","name":"hostmask","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"81c52bbf38c2756a84d9b8fd6a717e2e272a3c0569f97936e806a1a78867f41d","first_version":"7.4","group":"net","group_label":"Network Address Functions And Operators","groups":["net"],"imported_at":"2026-09-27T17:57:28.675049+08:00","last_version":"20","name":"hostmask","name_key":"hostmask","position":11004,"present_in":["7.4","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":"hostmask ( inet ) → inet","signature_count":1,"slug":"hostmask","source_rev":"b7bd9cda","summary":"Computes the host mask for the address's network.","summary_zh":""}},"Definition":{"Collection":"func","Key":"hostmask","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"hostmask","SourceRevision":"b7bd9cda","Facts":{"description":"Computes the host mask for the address's network.","description_html":"Computes the host mask for the address's network.","description_zh":"","description_zh_html":"","doc":{"anchor":"CIDR-INET-FUNCTIONS-TABLE","file":"functions-net.html","slug":"18"},"group":"net","group_label":"Network Address Functions And Operators","lang":"en","layout":"table-new","pages":["functions-net.html"],"prose_only":false,"signatures":[{"description":"Computes the host mask for the address's network.","description_html":"Computes the host mask for the address's network.","description_zh":"","description_zh_html":"","examples":[{"expr":"hostmask(inet '192.168.23.20/30')","result":"0.0.0.3"}],"html":"\u003ccode class=\"function\"\u003ehostmask\u003c/code\u003e ( \u003ccode class=\"type\"\u003einet\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einet\u003c/code\u003e","returns":"inet","text":"hostmask ( inet ) → inet","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"CIDR-INET-FUNCTIONS-TABLE","file":"functions-net.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"hostmask","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"hostmask","Summary":"为地址的网络计算主机掩码。","BodyHTML":"为地址的网络计算主机掩码。\u003cpre\u003ehostmask ( inet ) → inet\u003c/pre\u003e为地址的网络计算主机掩码。","SourceRevision":"ca936764","ContentHash":"e57ee5849f3f43b9c11a5c2332b507d1178bc3cc34ebc3b020d00a791e6befa1","Payload":{"description_zh":"为地址的网络计算主机掩码。","description_zh_html":"为地址的网络计算主机掩码。","signatures":[{"description_zh":"为地址的网络计算主机掩码。","description_zh_html":"为地址的网络计算主机掩码。","returns":"inet","text":"hostmask ( inet ) → inet","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.4","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":"2b282cc01b7b6bbee819f4191672e7e0ca184d62abb3cd1e9903fdf0120c9a86","Text":"hostmask ( inet ) → inet","Returns":"inet","Payload":{"description":"Computes the host mask for the address's network.","description_html":"Computes the host mask for the address's network.","description_zh":"","description_zh_html":"","examples":[{"expr":"hostmask(inet '192.168.23.20/30')","result":"0.0.0.3"}],"html":"\u003ccode class=\"function\"\u003ehostmask\u003c/code\u003e ( \u003ccode class=\"type\"\u003einet\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einet\u003c/code\u003e","returns":"inet","text":"hostmask ( inet ) → inet","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
