{"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","derived_content_hash":"6e1830e377e321da696c64b75c3b35e8c04c681df149acd2dfe87a0bdae1fab7","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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:b5fecc4d26975477e30b0b0ee747890e1de3f517cb15b5410c5acf0d89f83c15","receipt_sha256":"a6d37d15bdb78727976337cfa5a589e49175f584babac13795f97e39ac1b4ca3","repair":"wiki-repair-20261023"},"signature":"hostmask ( inet ) → inet","signature_count":1,"slug":"hostmask","source_rev":"wiki-repair-20261023:4dc7b0d9628307da73aed19daad8a5a10870a78fb5a68ee8a675a56eb25deb7c","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":"wiki-repair-20261023:4dc7b0d9628307da73aed19daad8a5a10870a78fb5a68ee8a675a56eb25deb7c","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":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-net.html","sha256":"f7bc82e79db54043a600f7fd78cd812affe41981686a58e1156921fdd998606d"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"CIDR-INET-FUNCTIONS-TABLE","file":"functions-net.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"hostmask","SourceDatabase":"center","Version":"18","Locale":"en","Title":"hostmask","Summary":"Computes the host mask for the address's network.","BodyHTML":"Computes the host mask for the address\u0026#39;s network.","SourceRevision":"wiki-repair-20261023:4dc7b0d9628307da73aed19daad8a5a10870a78fb5a68ee8a675a56eb25deb7c","ContentHash":"88b175d2ac921ff78bd1b707176a58ce26ad5c8829b39ac18f67bee58ccd6231","Payload":{"description":"Computes the host mask for the address's network.","description_html":"Computes the host mask for the address's network.","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":"same-version-pgdoc"}]}},"RequestedLocale":"en","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":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
