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
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 →