Open dineshsivaji opened 1 year ago
Hi @dineshsivaji! PL/Rust doesn't support this yet. We have some loose plans around what this will look like, and intend to do it eventually. The implementation itself will largely be in pgrx
. I'll leave this issue open as you're the first to publicly ask for it.
I should add that you can use Spi to call another function. The major downside there is incurring the Spi overhead. Depending on what the other function does, maybe that won't be too terrible.
Thanks, @eeeebbbbrrrr . I also thought of using SPI as an alternate. Hope this feature added in the near future.
Was just about to suggest this and saw that the issue is already open. It would be really useful for us too.
It's in-progress. Most of the work has to happen in pgrx, and I've got a proof-of-concept PR up already. Probably a couple more weeks of work.
Brilliant, thanks @eeeebbbbrrrr
Hi,
I am just exploring on the feasibility of using multiple functions and calling from one another.
I read that
CREATE FUNCTION
is compiled to rust function internally in the documentation. In that case, how can we call another function from inside a function ? How to expose functions to one another ?