I have a fairly short (14-byte) bytea data column in my database. I would like to print it as a hexadecimal string.
bytea
How do I do that?
Based on this answer, I found my solution to be
SELECT encode(my_column::bytea, 'hex') FROM my_table;
2.1m questions
2.1m answers
60 comments
57.0k users