You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is the right place for it, or if this should go to the main repo. Please advice.
I'm looking to import huge amounts of data from parquet to postgres via duckdb. This seems like the perfect tool for the job. I was looking to see if there's a way that I could use unlogged tables (Unlogged tables disable WAL to significantly improve write speeds).
I tried the following snippets to no avail:
INSTALL postgres;
SET pg_debug_show_queries=true;
SET pg_pages_per_task=10000;
ATTACH 'dbname=mydb'AS mydb (TYPE postgres);
DROPTABLE IF EXISTS mydb.userdata1;
CREATE UNLOGGED TABLE mydb.userdata1ASFROM (SELECT*FROM'foo.parquet'LIMIT0);
However, it seems to simply ignore the UNLOGGED keyword. Is there any possibility to "escape out" to execute native postgresql? I'm happy to do ALTER TABLE ... SET UNLOGGED via native postgresql query as well.
Thanks
The text was updated successfully, but these errors were encountered:
That would absolutely work fine, and very much in line with what I was hoping/expecting. It would not be practical for duckdb to expose every single SQL feature. Where there are gaps between the different SQL dialects, going down to native SQL would be absolutely perfect.
I'm not sure if this is the right place for it, or if this should go to the main repo. Please advice.
I'm looking to import huge amounts of data from parquet to postgres via duckdb. This seems like the perfect tool for the job. I was looking to see if there's a way that I could use unlogged tables (Unlogged tables disable WAL to significantly improve write speeds).
I tried the following snippets to no avail:
However, it seems to simply ignore the
UNLOGGED
keyword. Is there any possibility to "escape out" to execute native postgresql? I'm happy to doALTER TABLE ... SET UNLOGGED
via native postgresql query as well.Thanks
The text was updated successfully, but these errors were encountered: