Postgres
Stream every insert, update and delete from Postgres into Tessel as a typed event. Use it to trigger workflows, enrich runs and write results back to your tables.
Database
Category
CDC
Sync mode
p95 380 ms
Latency
6 min
Setup time
What it can do
- Row insertedCDC
- Row updatedCDC
- Row deletedCDC
- Run a read queryRead
- Insert a rowWrite
- Update rowsWrite
- Upsert by keyWrite
Overview
The Postgres connector reads changes straight from the write-ahead log, so workflows react to what happened in your database without polling. Each change arrives as a typed event with the table schema attached, and every event shows up in the trace of the run it started.
Teams use it to start invoice matching when a payment row lands, to sync account changes into Salesforce and to alert a channel when an order sits unpaid for too long.
Supported versions
Postgres 12 to 17, self-hosted or managed
Amazon RDS and Aurora, Google Cloud SQL, Azure Database, Supabase and Neon
Connections over TLS, with optional SSH tunnel or AWS PrivateLink
How CDC works
Tessel creates a publication for the tables you choose and a logical replication slot that it reads continuously. Changes are decoded with pgoutput, checked against the schema and delivered in commit order. If Tessel pauses, the slot holds your place, so no change is skipped.
Backfill
On first connect, Tessel can snapshot existing rows so a new workflow starts with full history. Snapshots run in batches of 10,000 rows and do not lock your tables.
Permissions needed
Create a dedicated role for Tessel. It needs replication and read access to the tables in the publication. Write access is only required if a workflow uses the insert, update or upsert actions.
REPLICATIONon the role, orrds_replicationon RDSSELECTon every table in the publicationINSERTandUPDATEonly on tables you write back to
Five steps. About six minutes.
Most of the time goes into creating the role. Tessel checks each step before you move on.
- Set wal_level to logical and restart if neededPostgres2 min
- Create a tessel role with replication and selectPostgres1 min
- Allow Tessel's static IPs for your regionNetwork1 min
- Paste the connection string and pick tablesTessel1 min
- Insert a test row and watch the event arriveVerify380 ms
Your tables, in a workflow today.
Connect Postgres on the free plan. Up to three builders and 10,000 runs a month, no card required.