CSV 파일을 PostgreSQL에 자동으로 가져오는 방법
초급
이것은Building Blocks분야의자동화 워크플로우로, 4개의 노드를 포함합니다.주로 Postgres, ManualTrigger, ReadBinaryFile, SpreadsheetFile 등의 노드를 사용하며. 파일 시스템에서 CSV 파일을 Postgres에 가져오기
사전 요구사항
- •PostgreSQL 데이터베이스 연결 정보
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "q8GNbRhjQDwDpXoo",
"meta": {
"instanceId": "0c2f219d911381bce56d337dbc86e66ee815b6ed822f8553d03a4cd4a8f25805",
"templateCredsSetupCompleted": true
},
"name": "How to automatically import CSV files into postgres",
"tags": [],
"nodes": [
{
"id": "9ae270f2-6e32-4a14-8a03-634b9c66004d",
"name": "'execute' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-340,
-80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "96de1409-9c48-4357-aaef-2202dec478a9",
"name": "파일에서 읽기",
"type": "n8n-nodes-base.readBinaryFile",
"position": [
-140,
-80
],
"parameters": {
"filePath": "/tmp/t1.csv"
},
"typeVersion": 1
},
{
"id": "22b002df-51fd-4074-8741-c9a754996170",
"name": "스프레드시트로 변환",
"type": "n8n-nodes-base.spreadsheetFile",
"position": [
60,
-80
],
"parameters": {
"options": {}
},
"typeVersion": 1
},
{
"id": "0ec04e46-be13-40c3-a4a4-60787bf02a1f",
"name": "Postgres",
"type": "n8n-nodes-base.postgres",
"position": [
320,
-80
],
"parameters": {
"table": {
"__rl": true,
"mode": "name",
"value": "t1"
},
"schema": {
"__rl": true,
"mode": "list",
"value": "public",
"cachedResultName": "public"
},
"columns": {
"value": {
"id": 0
},
"schema": [
{
"id": "id",
"type": "number",
"display": true,
"removed": false,
"required": false,
"displayName": "id",
"defaultMatch": true,
"canBeUsedToMatch": true
},
{
"id": "name",
"type": "string",
"display": true,
"required": false,
"displayName": "name",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "autoMapInputData",
"matchingColumns": [
"id"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"credentials": {
"postgres": {
"id": "cgLBOWHeiHmIZuFx",
"name": "Postgres account"
}
},
"typeVersion": 2.5
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "332ff892-d7c2-4e11-8119-e95a2ded82e7",
"connections": {
"96de1409-9c48-4357-aaef-2202dec478a9": {
"main": [
[
{
"node": "22b002df-51fd-4074-8741-c9a754996170",
"type": "main",
"index": 0
}
]
]
},
"9ae270f2-6e32-4a14-8a03-634b9c66004d": {
"main": [
[
{
"node": "96de1409-9c48-4357-aaef-2202dec478a9",
"type": "main",
"index": 0
}
]
]
},
"22b002df-51fd-4074-8741-c9a754996170": {
"main": [
[
{
"node": "0ec04e46-be13-40c3-a4a4-60787bf02a1f",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
초급 - 빌딩 블록
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
이메일 관련 질문을 SQL 쿼리로 변환하고 실행
이메일 어시스턴트: Phi4-mini와 PostgreSQL를 사용하여 자연어를 SQL 쿼리로 변환
If
Set
Merge
+
If
Set
Merge
26 노드Alfonso Corretti
빌딩 블록
n8n_3_CAD-BIM-批量변환器-管道
批量 CAD/BIM 파일을 XLSX/DAE로 변환, 검증과 보고서 포함
If
Set
Code
+
If
Set
Code
82 노드Artem Boiko
문서 추출
내 워크플로우
개별ized 첨부 파일을 포함한 대량 이메일 발송
Email Send
Manual Trigger
Read Binary File
+
Email Send
Manual Trigger
Read Binary File
6 노드Bhavabhuthi
마케팅
n8n_7_Revit와 IFC 탄소 배출 CO2 추산기
AI 분류 계산을 통해 Revit/IFC 모델의 숨겨진 탄소(CO2)을 계산합니다.
If
Set
Code
+
If
Set
Code
55 노드Artem Boiko
AI 요약
n8n_6_ LLM을 사용하여 Revit와 IFC의 건설 비용 추정
GPT-4와 Claude를 사용하여 Revit/IFC 모델을 기반으로 건설 비용을 추정
If
Set
Code
+
If
Set
Code
55 노드Artem Boiko
AI 요약
n8n_8_Revit_IFC_DWG 변환_추출 단계_XLSX 분석
Revit 모델 데이터 추출 및 구조화된 Excel 형식으로 분석
If
Set
Manual Trigger
+
If
Set
Manual Trigger
13 노드Artem Boiko
엔지니어링