bit_length ( text ) → integerReturns number of bits in the string (8 times the
octet_length).bit_length('jose') → 32Returns number of bits in the string (8 times the octet_length).
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: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source