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;
1.4m articles
1.4m replys
5 comments
57.0k users