The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"name": "Run Query",
"type": "n8n-nodes-base.postgres",
"position": [
450,
450
],
"parameters": {
"query": "SELECT name, ean FROM product",
"operation": "executeQuery"
},
"credentials": {
"postgres": "<your credential>"
},
"typeVersion": 1
},
{
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"position": [
600,
450
],
"parameters": {
"operation": "toFile"
},
"typeVersion": 1
},
{
"name": "Write Binary File",
"type": "n8n-nodes-base.writeBinaryFile",
"position": [
750,
450
],
"parameters": {
"fileName": "spreadsheet.xls"
},
"typeVersion": 1
}
],
"connections": {
"Run Query": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "Write Binary File",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
postgres
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Transfer Data From Postgres To Excel. Uses postgres, spreadsheetFile, writeBinaryFile. Manual trigger; 3 nodes.
Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Excel To Postgres. Uses readBinaryFile, spreadsheetFile, postgres. Manual trigger; 3 nodes.
Creepy Crawler. Uses readBinaryFile, spreadsheetFile, postgres. Manual trigger; 3 nodes.
Convert Postgresql Table To Csv. Uses manualTrigger, spreadsheetFile, postgres. Event-driven trigger; 4 nodes.
PostgreSQL export to CSV. Uses manualTrigger, spreadsheetFile, postgres. Event-driven trigger; 4 nodes.
How to automatically import CSV files into postgres. Uses manualTrigger, readBinaryFile, spreadsheetFile, postgres. Event-driven trigger; 4 nodes.