{"Entry":{"collection":"func","key":"network","name":"network","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"a9ee405f8a7a5300748a22905b7d8d201f7a26caa3f06695e537b6758ce2f3f9","first_version":"7.1","group":"net","group_label":"Network Address Functions And Operators","groups":["net"],"imported_at":"2026-09-27T17:57:28.683059+08:00","last_version":"20","name":"network","name_key":"network","position":11010,"present_in":["7.1","7.2","7.3","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":"network ( inet ) → cidr","signature_count":1,"slug":"network","source_rev":"b7bd9cda","summary":"Returns the network part of the address, zeroing out whatever is to the right of the netmask.","summary_zh":""}},"Definition":{"Collection":"func","Key":"network","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"network","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to cidr.)","description_html":"Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to \u003ccode class=\"type\"\u003ecidr\u003c/code\u003e.)","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":"Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to cidr.)","description_html":"Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to \u003ccode class=\"type\"\u003ecidr\u003c/code\u003e.)","description_zh":"","description_zh_html":"","examples":[{"expr":"network(inet '192.168.1.5/24')","result":"192.168.1.0/24"}],"html":"\u003ccode class=\"function\"\u003enetwork\u003c/code\u003e ( \u003ccode class=\"type\"\u003einet\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ecidr\u003c/code\u003e","returns":"cidr","text":"network ( inet ) → cidr","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"CIDR-INET-FUNCTIONS-TABLE","file":"functions-net.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"network","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"network","Summary":"返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为cidr。）","BodyHTML":"返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为\u003ccode\u003ecidr\u003c/code\u003e。）\u003cpre\u003enetwork ( inet ) → cidr\u003c/pre\u003e返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为\u003ccode\u003ecidr\u003c/code\u003e。）","SourceRevision":"ca936764","ContentHash":"57882e25f7de866e2067618d0be39c536c396ace843bd2d116c8e9918d7beca6","Payload":{"description_zh":"返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为cidr。）","description_zh_html":"返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为\u003ccode class=\"type\"\u003ecidr\u003c/code\u003e。）","signatures":[{"description_zh":"返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为cidr。）","description_zh_html":"返回地址的网络部分，将子网掩码右边的部分归零。（这相当于将值转换为\u003ccode class=\"type\"\u003ecidr\u003c/code\u003e。）","returns":"cidr","text":"network ( inet ) → cidr","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","7.2","7.3","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":"53f2f17ad80360d29645e2d8b497805c56fbf68572daada33825c48374cc4b79","Text":"network ( inet ) → cidr","Returns":"cidr","Payload":{"description":"Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to cidr.)","description_html":"Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to \u003ccode class=\"type\"\u003ecidr\u003c/code\u003e.)","description_zh":"","description_zh_html":"","examples":[{"expr":"network(inet '192.168.1.5/24')","result":"192.168.1.0/24"}],"html":"\u003ccode class=\"function\"\u003enetwork\u003c/code\u003e ( \u003ccode class=\"type\"\u003einet\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ecidr\u003c/code\u003e","returns":"cidr","text":"network ( inet ) → cidr","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
