workflows.fit
Back to n8n workflows
n8n templateFreeBy rpshu

Import CSV files from filesystem into Postgres

-- 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 D...

DevelopmentData & StorageCore NodesManual TriggerRead Binary FileSpreadsheet FilePostgres
Loading interactive preview...

Template notes

-- 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));