duckdb_fdw icon indicating copy to clipboard operation
duckdb_fdw copied to clipboard

failed to open sqlite db error

Open icefairy opened this issue 1 year ago • 2 comments
trafficstars

pg15 duckdb 0.10.1

create server ds foreign data wrapper duckdb_fdw options (database '/home/postgres/duckdb');

select duckdb_execute('ds','create table t1(a integer ,b integer ,c varchar(10));'); ERROR: failed to open SQLite DB. rc=1 path=/home/postgres/duckdb

select duckdb_execute('ds','create or replace view myv select now();'); ERROR: failed to open SQLite DB. rc=1 path=/home/postgres/duckdb

the fdw just worked with precreated database with duckdb cli,I want to know if it can work without duckdb cli,just use duckdb with fdw and duckdb_execute to create table and using it? thanks

icefairy avatar Mar 28 '24 04:03 icefairy

the directory of /home/postgres/duckdb is owner by postgres,the permssions are setting ok (because it works with created database using duckdb cli)

icefairy avatar Mar 28 '24 04:03 icefairy

/home/postgres/duckdb is a directory or duckdb database path?

if db, make sure postgres use has the owner of it.

alitrack avatar Apr 05 '24 15:04 alitrack