Closed elysabethpc closed 1 year ago
I am still working on it.
Hello,
I tried myaniu's solution, but it doesn't work for me. I can load the extension and create server but failed when I try to read from duckdb file with "unable to open database file":
db1=# create extension duckdb_fdw;
CREATE EXTENSION
db1=# \dx
List of installed extensions
Name | Version | Schema | Description
------------+---------+------------+------------------------------
duckdb_fdw | 1.1 | public | DuckDB Foreign Data Wrapper
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(2 rows)
db1=# create server duckdb_srv foreign data wrapper duckdb_fdw options (database '/tmp/db1.duckdb', read_only 'true');
CREATE SERVER
db1=#
db1=# import foreign schema public from server duckdb_srv into public;
ERROR: SQL error during prepare: unable to open database file SELECT name FROM sqlite_master WHERE type in('table', 'view') AND name NOT LIKE 'sqlite_%'
I also tried the myaniu's dockfile on issue thread "duckdb_fdw.so: undefined symbol: sqlite3_limit", but failed.
Thank you
fixed, from DuckDB 0.6, sqlite3_api_wrapper has an extra include, so I have to include it too.
#include "duckdb_shell_wrapper.h"
btw,please refer this to simplify the job.
It works ok. Thank you
Hello,
When I build duckdb_fdw with duckdb version 0.6.0 or 0.6.1, everything is fine. But when I try to load the extension, with create extension duckdb_fdw, I get the following error:
I am using fedora 37, postgresql 14.6.
When I use it with the duckdb v0.5.1 tag, everything comes out OK.
I have noticed that when I do ldd duckdb_fdw.so, is not linked with the duckdb libraries:
This is the output I get for vesion 0.6.1:
And this one for version 0.5.1:
Thank you for your work