-
Notifications
You must be signed in to change notification settings - Fork 40
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
support SQLite plugins #73
Comments
Do you expect sqlite_fdw to call load_extension()? But we have no plan to develop such feature now. Your contribution is welcome. |
@nick008a, for PostgreSQL SQLite runtime plugins is outer third-party binary code with execution rights. This can be a security issue. Maybe using SQLite C-code with included functions from most popular plugins will be better. |
Yes.
I know, but I think there should be an option to enable this. |
@nick008a , You can write a function for PostgreSQL database superuser like in this places sqlite_fdw/sqlite_fdw--1.0--1.1.sql Line 6 in dbb7a39
Line 64 in dbb7a39
Line 694 in dbb7a39
About SQLite C call see in https://www.sqlite.org/c3ref/load_extension.html Please also add testing case: SQLite query with function from some extension -> not exist, load extension -> query OK. |
@nick008a , have you got any results or problems with implementation? |
@t-kataym , I have implementation of plugin support. There is user check if superuser or owner of the foreign server. For testing there is useful set and official documentation about compilation. |
@mkgrgis
If my understanding is true, I have some suggestions:
|
Yes, @jopoly. Your understanding is completely true. Thanks for suggestions! In my current plans plugins support is after GIS, |
@mkgrgis |
Problem
Is it possible to support sqlite plugins (.so/.dll)?
Context
I wanted use FTS5 from sqlite to replace postgresql's built-in FTS, which does not have BM25 ranking support.
The idea was to use something like
to sync data from postgresql table to a sqlite foreign table, but I found that I cannot load the customized tokenizer (myowntokenizer.so/myowntokenizer.dll) on the sqlite side.
The text was updated successfully, but these errors were encountered: