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