What have you found for these years?

2010-09-23

postgres9 bytea hex format

8.4. Binary Data Types

It seems that postgres 9 always returns hex format for bytea data.
We might want to do this to decode hex back to binary string:
[s[1..-1]].pack('H*')

0 retries:

Post a Comment

All texts are licensed under CC Attribution 3.0