pg-extend-rs
pg-extend-rs copied to clipboard
draft; add bytea support
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.