-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call a function from another function #370
Comments
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 |
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 ?
The text was updated successfully, but these errors were encountered: