bit_length ( text ) → integerReturns number of bits in the string (8 times the
octet_length).bit_length('jose') → 32Functions / String Functions And Operators
Returns number of bits in the string (8 times the octet_length).
Reading PG 18current·documented in 26 of 27 versions, 7.2 to 20
bit_length ( text ) → integerReturns number of bits in the string (8 times the
octet_length).bit_length('jose') → 32bit_length ( bytea ) → integerReturns number of bits in the binary string (8 times the
octet_length).bit_length('\x123456'::bytea) → 24bit_length ( bit ) → integerReturns number of bits in the bit string.
bit_length(B'10111') → 5
Definition snapshot: b7bd9cda · English manual source