Open workingjubilee opened 1 month ago
Relatively simple.
Pick or write a ThinCStr type (or Thin<CStr>, whatever). and rewrite most/all *const c_char args in pgrx-pg-sys bindings to take it. In practice they generally want to be pointers to null terminated strings.
Thin<CStr>
*const c_char
more ambitious: get upstream to finally implement size_of::<&CStr>() == size_of::<*const c_char>() like they have been threatening to do Forever.
size_of::<&CStr>() == size_of::<*const c_char>()
Relatively simple.
Pick or write a ThinCStr type (or
Thin<CStr>
, whatever). and rewrite most/all*const c_char
args in pgrx-pg-sys bindings to take it. In practice they generally want to be pointers to null terminated strings.