pgcentralfoundation / pgrx

Build Postgres Extensions with Rust!
Other
3.57k stars 242 forks source link

FcInfo wrapper #1720

Closed NotGyro closed 3 months ago

NotGyro commented 4 months ago

Implements a thin wrapper around FunctionCallInfo in order to allow us to track the lifetimes of arguments provided to a function callable by Postgres.

workingjubilee commented 4 months ago

it seems things are coming along nicely, I'm just noting you're allowed to interpret a bit more into things~

workingjubilee commented 4 months ago

This does need an as_mut_ptr function for continued FFI uses.

NotGyro commented 4 months ago

This does need an as_mut_ptr function for continued FFI uses.

Could this be a crate-level internal method?

workingjubilee commented 4 months ago

Hm, sadly I don't think so.

workingjubilee commented 4 months ago

We can defer adding it for a bit but I don't think we can do it forever.