postgres_scanner icon indicating copy to clipboard operation
postgres_scanner copied to clipboard

postgres_query query parameters

Open VGSML opened this issue 1 year ago • 0 comments

Nice to have possibilities to pass parameters through duckdb direct to the complex posgres query like

with pgdata as (
     select * from postgres_query(pg, $$select * from some_pg_table where some_pg_column = 1 $$, $1)
)
select *
from some_duckdb_table
           inner join pgdata on some_duckdb_table.duckdb_id = pgdata.pg_id

It will make duckdb more useful in production use cases.

VGSML avatar Aug 29 '24 18:08 VGSML