This patch converts PQunescapeBytea from using arrays to the text string and to the output binary string to using pointers. This makes it much faster than the older version for large Bytea's.
--- Adam Kavan--- akavan(at)cox(dot)net