pg-extend-rs icon indicating copy to clipboard operation
pg-extend-rs copied to clipboard

draft; add bytea support

Open mxork opened this issue 5 years ago • 0 comments

Adds support for bytea.

This PR is rough. I mostly ripped off the implementation for Text where possible.

There's a lot of unsafe in here that I'm not sure I'm respecting the invariants of. I also don't understand the current state of allocation in the codebase (should I palloc or MemoryContextAlloc?).

If anyone has time to explain to me the Right Way to do things, I am happy to do a rewrite. Otherwise, hopefully someone can use this as stub code.

mxork avatar Feb 01 '20 02:02 mxork