AutomationFlowsData & Sheets › Run A Sql Query On Postgres

Run A Sql Query On Postgres

Run A Sql Query On Postgres. Uses manualTrigger, postgres. Event-driven trigger; 2 nodes.

Event trigger★☆☆☆☆ complexity2 nodesPostgres
Data & Sheets Trigger: Event Nodes: 2 Complexity: ★☆☆☆☆

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 →

Download .json
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "Postgres",
      "type": "n8n-nodes-base.postgres",
      "position": [
        450,
        300
      ],
      "parameters": {
        "query": "SELECT * from sometable;",
        "operation": "executeQuery"
      },
      "credentials": {
        "postgres": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Postgres",
            "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.

About this workflow

Run A Sql Query On Postgres. Uses manualTrigger, postgres. Event-driven trigger; 2 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →