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;
What's the equivalent to show tables (from MySQL) in PostgreSQL?
How do I change the password for PostgreSQL user?
How do you perform the equivalent of Oracle's DESCRIBE TABLE in PostgreSQL (using the psql command)?