DuckDB is exceptionally fast in reading CSV files and it can be used to write data directly into Postgres as well. For the Node-GTFS project, I ran a quick benchmark here: https://github.com/BlinkTagInc/node-gtfs/issues/148#issuecomment-2250635811 Then using DuckDB, the imported files could be modified and cleaned up directly in DuckDB, and then subsequently exported to Postgres: https://duckdb.org/docs/extensions/postgres.html#writing-data-to-postgresql