Skip to content
FlowHubFluxonLab
Postgres
PostgreSQLfree

Create a table in Postgres and insert data

by amudhanadapted from n8n official workflow galleryUpdated Aug 2026
RequiresPostgresPostgres
Share Post Share
MaOn clicking 'execute'On clicking 'ex…SeSetPostgresPostgres1123
1/5
STEPS · 3
Run manually by an operator

Companion workflow for Postgres node docs

Tags

n8nreference-onlypostgres
Connects
postgresPostgres
CategoryPostgreSQL
Triggermanual
Complexitysimple
Nodes4
AddedAug 10, 2020

Related workflows

See all PostgreSQL
postgres
free

Insert Excel data to Postgres

Read XLS from file Convert it to JSON Insert it in Postgres

by Jan Oberhauser
postgres
free

Transfer data from Postgres to Excel

Read data from Postgres Converting it to XLS Save it to disk

by Jan Oberhauser
postgres
free

Generate and insert data into a Postgres database

This is Workflow 1 in the blog tutorial Database activity monitoring and alerting. Prerequisites A Postgres database set up and credentials. Basic knowledge of JavaScript and SQL. Nodes Cron node starts the workflow every minute. Function node generates sensor data (sensor id (preset), a randomly generated value, timestamp, and notification (preset as false) ) Postgres node inserts the data into a Postgres database. You can create the database for this workflow with the following SQL statement: CREATE TABLE n8n (id SERIAL, sensor_id VARCHAR, value INT, time_stamp TIMESTAMP, notification BOOLEAN);

by tanaypant