Import CSV files from filesystem into Postgres
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Read Binary File. 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| Read Binary File Read From File | Read/Write Files from Disk |
Worth a look
- Spreadsheet File (Convert To Spreadsheet): Convert to File / Extract from File
Nodes used (4)
- Manual Trigger
n8n-nodes-base.manualTrigger - Read Binary File
n8n-nodes-base.readBinaryFile - Spreadsheet File
n8n-nodes-base.spreadsheetFile - Postgres
n8n-nodes-base.postgres
What it does
-- Disclaimer: This template is mainly made for self-hosted users who can reach CSV files in their file system. For Cloud users, just replace the first few nodes with your file system of choice, like Google Drive or Dropbox -- How to automatically import CSV files into postgres 1、project description This workflow demonstrates how CSV file can be automatically imported into existing PostgreSQL database. !Import CSV into PostgreSQL.png(fileId:957) Before running the workflow please make sure you have a file on the server: /tmp/t1.csv The name of the test database is db01, and you can replace it. then create table t1 create table t1(id int,name varchar(10)); And the content of the file is the following: |id|name| |-|-|-| |1|a| |2|b| |3|c| 2、Other If you want to import a custom csv file, please refer to the following methods. 2.1、Create a table in the database SQL Commands: https://www.postgresql.org/docs/current/sql-createtable.html 2.2、Upload csv file Upload csv file to N8N server and make sure it can be read.