This workflow follows the Execute Workflow Trigger → Postgres recipe pattern — see all workflows that pair these two integrations.
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 →
{
"name": "query_executer",
"nodes": [
{
"parameters": {},
"id": "666e9bde-2a47-4067-85be-1049c3a6905a",
"name": "Execute Workflow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "{{ $json.query.sql }}",
"options": {}
},
"id": "3a02fd9d-d6f8-4383-a82f-cdc8d60955b2",
"name": "Postgres",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
180,
0
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "e2f94fb1-3deb-466a-a36c-e3476511d5f2",
"name": "response",
"value": "={{ $json }}",
"type": "string"
}
]
},
"options": {}
},
"id": "1e628256-f097-48e3-96af-0df81289e2b5",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
340,
0
]
}
],
"connections": {
"Execute Workflow Trigger": {
"main": [
[
{
"node": "Postgres",
"type": "main",
"index": 0
}
]
]
},
"Postgres": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "2626bef7-0937-436d-a3ab-8f4cce217117",
"id": "3VJxazKKWXmKl71G",
"tags": []
}
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
query_executer. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.
Source: https://github.com/aieeiee/fc_nocoderag/blob/main/workflow/query_executer.json — 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.
[Sub] Search Schema Docs. Uses stickyNote, executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.
W4.1 - ROUTER (State + Voice). Uses executeWorkflowTrigger, postgres, redis. Event-driven trigger; 30 nodes.
SHEETS RAG. Uses googleDriveTrigger, postgres, googleSheets, executeWorkflowTrigger. Event-driven trigger; 24 nodes.
Gmail-Calendar. Uses executeWorkflowTrigger, postgres, googleCalendar, httpRequest. Event-driven trigger; 12 nodes.
Gmail-Triage. Uses executeWorkflowTrigger, httpRequest, postgres. Event-driven trigger; 10 nodes.