możesz użyć encode funkcja:
select encode(bytea_column, 'hex')
from image;
Jeśli chcesz zobaczyć tylko pierwsze bajty, użyj left() funkcja na tym:
select left(encode(bytea_column, 'hex'), 40)
from image;
Więcej szczegółów w instrukcji:
https://www .postgresql.org/docs/current/static/functions-binarystring.html