Content Deep Dive
Row-level transformations in Postgres CDC using Lua
Blog post from PeerDB
Post Details
Company
Date Published
Author
Sai Srirampur
Word Count
1,265
Language
English
Hacker News Points
5
Summary
PeerDB Streams has introduced support for row-level transformations as part of Postgres Change Data Capture (CDC). Users can write simple Lua scripts to define a transformation and add it as part of the replication. This feature allows seamless in-flight row-level transformations to Postgres data before it is streamed to the target, addressing various use cases such as masking PII data, changing data format, generated columns, unnesting JSONs, topic routing, and data encryption. PeerDB chose Lua for its balance of engineering speed, integration with their Go-based platform, and end-user usability.