Support for Custom PostgreSQL Extensions #33754
Unanswered
bin-bash-mak
asked this question in
Feature Requests
Replies: 1 comment 1 reply
-
Yeah that would be great! I think something could be done using web assembly. I see supabase has used web assembly with their wrappers - https://supabase.com/blog/postgres-foreign-data-wrappers-with-wasm |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, Supabase supports a curated set of pre-approved PostgreSQL extensions, because it "helps ensure security and stability in the managed environment". However, this approach limits users who require custom database functionality implemented through PostgreSQL extensions.
As discussed in issue 14325, the only way to currently add an extension is via
pg_tle
, installing it from database.dev, or using one of the pre-approved ones.But the problem is that I have an extension built with pgrx and I can't add it to my Supabase project.
Now with the already available set of extensions / tools, I can already do what I want in plpgsql or in a node function. But I think it would be nice to add the ability to push extensions similar to how edge functions are pushed.
I also am not sure but I would assume that the native part of the extension inherits the database process permission. But if there's a way to somehow sandbox them or restrict the access to specific parts of the underlying OS. could it help with the mitigation of the security concerns?
Beta Was this translation helpful? Give feedback.
All reactions