set_bit ( bytes bytea, n bigint, newvalue integer ) → byteaSets n'th bit in binary string to
newvalue.set_bit('\x1234567890'::bytea, 30, 0) → \x1234563890Functions / Binary String Functions And Operators
Sets n'th bit in binary string to newvalue.
Reading PG 18current·documented in 25 of 27 versions, 7.3 to 20
set_bit ( bytes bytea, n bigint, newvalue integer ) → byteaSets n'th bit in binary string to
newvalue.set_bit('\x1234567890'::bytea, 30, 0) → \x1234563890set_bit ( bits bit, n integer, newvalue integer ) → bitSets
n'th bit in bit string to newvalue; the first (leftmost) bit is bit 0.set_bit(B'101010101010101010', 6, 0) → 101010001010101010
Definition snapshot: b7bd9cda · English manual source