↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Aggregate Functions

Computes the bitwise OR of all non-null input values.

Reading PG 18current·documented in 23 of 27 versions, 8.0 to 20

Signatures & examples

bit_or ( smallint ) → smallint
Computes the bitwise OR of all non-null input values.
bit_or ( integer ) → integer
Computes the bitwise OR of all non-null input values.
bit_or ( bigint ) → bigint
Computes the bitwise OR of all non-null input values.
bit_or ( bit ) → bit
Computes the bitwise OR of all non-null input values.
Version history 2
  1. 12 → 13 changed
  2. 7.4 → 8.0 added

Definition snapshot: b7bd9cda · English manual source