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 n...
🔌 Nodes & Integrations Used (1)
📖 Implementation & Setup Guide
-- 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. 
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.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Import CSV files from filesystem into Postgres.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Social Media & Content Workflows
View All in Social Media & Content →AI Auto-Tagging for WordPress Posts
Production-ready n8n automation template for AI Auto-Tagging for WordPress Posts built by AhiXLight. Seamlessly connects Lm Chat Open Ai, Output Parser Autofixing, Output Parser Structured with 32 configured nodes.
AI Auto-Tagging for WordPress Posts
Production-ready n8n automation template for AI Auto-Tagging for WordPress Posts built by AhiXLight. Seamlessly connects Lm Chat Open Ai, Output Parser Autofixing, Output Parser Structured with 32 configured nodes.
AI Image Caption Generator Overlay
Production-ready n8n automation template for AI Image Caption Generator Overlay built by AhiXLight. Seamlessly connects Lm Chat Google Gemini, Output Parser Structured, Edit Image with 16 configured nodes.
AI Image Caption Generator with Overlay
Production-ready n8n automation template for AI Image Caption Generator with Overlay built by AhiXLight. Seamlessly connects Lm Chat Google Gemini, Output Parser Structured, Edit Image with 16 configured nodes.