Templates / Join data from Postgres and MySQL

Join data from Postgres and MySQL

Needs changes

by Hermilio · 4,016 views · created 2021-12-15 · Engineering

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 6 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects MySQL and Postgres.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. PegarConfiguracaoImpressao (HTTP Request): calls an HTTP API
  2. dadosProduto (MySQL): run a query
  3. trataRetorno (Function): runs custom JavaScript (legacy Function node)
  4. roloProduto (Merge): merges the data from its input branches
  5. dadosRolo (Postgres): run a query

Services it uses

MySQLPostgres

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in trataRetorno: replace with Code node, mode 'Run Once for All Items'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Function (legacy)
trataRetorno
Code node, mode 'Run Once for All Items'

Nodes used (6)

From the author

query data from two different databases handle and unify in a single return

Excerpt from Hermilio's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.