You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PL/Rust currently does not have an implementation of global shared state because it allows violating SQL role data access constraints, by someone calling plrust_a(), another person calling plrust_b(), and thereby exfiltrating data between those two functions across an SQL "role boundary". We would need to solve this problem to prevent SQL constraints from being violated, first, before we added this ability.
You can replicate SD from those docs by using thread_local or a static Mutex. But there's no equivalent to GD, for the reasons @workingjubilee mentioned.
Does plrust support or plan to support shared state between function calls, like Python does?
https://www.postgresql.org/docs/current/plpython-sharing.html
The text was updated successfully, but these errors were encountered: