News for hackers. Stuff that matters.
Re:Querying Parquet with Precision Using DuckDB by mytherin on Friday June 25, 2021 @03:55PM (#27635477)
DuckDB is designed to be used as an embedded library, so it should be totally feasible to use it as part of a FDW.

Alternatively, you can run DuckDB as part of a plpython function:

  CREATE FUNCTION pyduckdb ()
    RETURNS integer
  AS $$
    import duckdb
    con = duckdb.connect()
    return con.execute('select 42').fetchall()[0][0]
  $$ LANGUAGE plpythonu;
  SELECT pyduckdb();

There are no comments on this comment yet.