length ( text ) → integerReturns the number of characters in the string.
length('jose') → 4Functions / String Functions And Operators
Returns the number of characters in the string.
Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20
length ( text ) → integerReturns the number of characters in the string.
length('jose') → 4length ( bytea ) → integerReturns the number of bytes in the binary string.
length('\x1234567890'::bytea) → 5length ( bytes bytea, encoding name ) → integerReturns the number of characters in the binary string, assuming that it is text in the given
encoding.length('jose'::bytea, 'UTF8') → 4length ( bit ) → integerReturns number of bits in the bit string.
length(B'10111') → 5
length ( geometric_type ) → double precisionComputes the total length. Available for
lseg, path.length(path '((-1,0),(1,0))') → 4
length ( tsvector ) → integerReturns the number of lexemes in the
tsvector.length('fat:2,4 cat:3 rat:5A'::tsvector) → 3Definition snapshot: b7bd9cda · English manual source