postgres=#postgres=# -- get_byte(string, offset)postgres=# -- Extract byte from stringpostgres=#postgres=# select get_byte('Th\\000omas'::bytea, 4); get_byte---------- 109(1 row)postgres=#postgres=#