check length of string postgres 10 code example Example: postgres count string length SELECT length('w3resource') AS "Length of a String";