postgres=#postgres=# -- length(string) int Length of binary stringpostgres=# select length('jo\\000se'::bytea); length-------- 5(1 row)postgres=#