pgrx icon indicating copy to clipboard operation
pgrx copied to clipboard

Missing mapping for fdw_handler

Open film42 opened this issue 3 years ago • 1 comments

In older versions I aliased the type like this...

type fdw_handler = pgx::PgBox<pgx_pg_sys::FdwRoutine>;

Now I get the error:

1: Failed to map return type `pgx::pgbox::PgBox<pgx_pg_sys::pg13::FdwRoutine>` to SQL type while building function `hello_fdw::hello_fdw_handler`.

film42 avatar Jun 10 '22 03:06 film42

Thanks for reporting this! #588 should fix it.

If you want to use it, you'll need to depend on the branch in your crate and install cargo-pgx from that branch too. We're breaking some things next version bump so you may need to do a bit of poking. You're welcome to @ me on discord (we already chatted) and I'll help you do any migration steps, since we haven't written a guide yet.

If you feel like it sometime, I'd love to receive a PR making that test I added in #588 into something functional. :)

Hoverbear avatar Jun 10 '22 16:06 Hoverbear