{"Entry":{"collection":"func","key":"bit-or","name":"bit_or","aliases":[],"metadata":{"changed_in":[],"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":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"1fa4faa7385b0c393ac01615c78710b49a7f78070d9dea3aba4e5a940854f5fd","first_version":"8.0","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-27T17:57:28.903515+08:00","last_version":"20","name":"bit_or","name_key":"bit_or","position":21004,"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":"bit_or ( smallint ) → smallint","signature_count":4,"slug":"bit-or","source_rev":"b7bd9cda","summary":"Computes the bitwise OR of all non-null input values.","summary_zh":""}},"Definition":{"Collection":"func","Key":"bit-or","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"bit-or","SourceRevision":"b7bd9cda","Facts":{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"},"group":"aggregate","group_label":"Aggregate Functions","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003esmallint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esmallint\u003c/code\u003e","returns":"smallint","text":"bit_or ( smallint ) → smallint","zh_from":""},{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"bit_or ( integer ) → integer","zh_from":""},{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"bit_or ( bigint ) → bigint","zh_from":""},{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebit\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebit\u003c/code\u003e","returns":"bit","text":"bit_or ( bit ) → bit","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"bit-or","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"bit_or","Summary":"计算所有非空输入值的按位或。","BodyHTML":"计算所有非空输入值的按位或。\u003cpre\u003ebit_or ( smallint ) → smallint\u003c/pre\u003e计算所有非空输入值的按位或。\u003cpre\u003ebit_or ( integer ) → integer\u003c/pre\u003e计算所有非空输入值的按位或。\u003cpre\u003ebit_or ( bigint ) → bigint\u003c/pre\u003e计算所有非空输入值的按位或。\u003cpre\u003ebit_or ( bit ) → bit\u003c/pre\u003e计算所有非空输入值的按位或。","SourceRevision":"ca936764","ContentHash":"7f9392f17761023f826ce741705d87d26e26f36f6c887391e73252908cac872b","Payload":{"description_zh":"计算所有非空输入值的按位或。","description_zh_html":"计算所有非空输入值的按位或。","signatures":[{"description_zh":"计算所有非空输入值的按位或。","description_zh_html":"计算所有非空输入值的按位或。","returns":"smallint","text":"bit_or ( smallint ) → smallint","zh_from":"doc"},{"description_zh":"计算所有非空输入值的按位或。","description_zh_html":"计算所有非空输入值的按位或。","returns":"integer","text":"bit_or ( integer ) → integer","zh_from":"doc"},{"description_zh":"计算所有非空输入值的按位或。","description_zh_html":"计算所有非空输入值的按位或。","returns":"bigint","text":"bit_or ( bigint ) → bigint","zh_from":"doc"},{"description_zh":"计算所有非空输入值的按位或。","description_zh_html":"计算所有非空输入值的按位或。","returns":"bit","text":"bit_or ( bit ) → bit","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":"778f470833d3b04ae04ea94e99a65f1ebd7155b9208a450f5e06bd37c18c358e","Text":"bit_or ( smallint ) → smallint","Returns":"smallint","Payload":{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003esmallint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esmallint\u003c/code\u003e","returns":"smallint","text":"bit_or ( smallint ) → smallint","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"ef1b807e3c205c3a98e127d76cd2d5a43f1288d5fb255f3c85e9bf04e93279ab","Text":"bit_or ( integer ) → integer","Returns":"integer","Payload":{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"bit_or ( integer ) → integer","zh_from":""}},{"Version":"18","Ordinal":2,"Hash":"525ced6b216a730b940ca0ee0479d2875d07ba6e88695ead1ccea30b073b9634","Text":"bit_or ( bigint ) → bigint","Returns":"bigint","Payload":{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"bit_or ( bigint ) → bigint","zh_from":""}},{"Version":"18","Ordinal":3,"Hash":"0785a74d30ed33c4b8752a63769ed1ff02a4f192fc02af1a3bb62214e99a5ba3","Text":"bit_or ( bit ) → bit","Returns":"bit","Payload":{"description":"Computes the bitwise OR of all non-null input values.","description_html":"Computes the bitwise OR of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_or\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebit\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebit\u003c/code\u003e","returns":"bit","text":"bit_or ( bit ) → bit","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
