Posted on 2026-04-01T00:00:00Z · Greenmask · PostgreSQL News
Database anonymization, synthetic data generation and logical dump
Greenmask Overview
Greenmask is a powerful open-source utility that is designed for logical database backup dumping, anonymization, synthetic data generation and restoration. It is stateless and does not require any changes to your database schema. It is designed to be highly customizable and backward-compatible with existing PostgreSQL utilities, fast and reliable.
Use Cases
- Sensitive Data Sanitization: Anonymize, transform, and mask PII for staging, analytics, and testing environments, ensuring compliance and security.
- Backup & Restore: A robust, drop-in replacement for
pg_dump/pg_restoreandmysqldump, handling schema and data with ease. - Local Development: Quickly spin up lightweight, referentially intact subsets of production databases for developers.
- Synthetic Data Generation: Generate realistic test data from scratch to populate empty environments using the CMD transformer and custom transformations.
Changes
- Implemented
-C(--create) parameter logic for restoration #414 - Added in-memory storage for the
validatecommand #405 - Fixed stack overflow issue in inherited DFS logic #409
- Properly escape double-quote characters in SQL identifier quoting #407
- Fixed dump status detection when metadata is missing #404
- Revised playground documentation and added a demo #406
- Bumped Go version and fixed CI/linting warnings #410
- Added Cloudflare R2 compatibility guide and fixed documentation typos #401
- Fixed ACL entries restoration when using
--restore-in-order#345 - Re-structured contributor documentation #400
- Enhanced and documented PostgreSQL version update procedure #383
- Fixed deterministic order in PK/FK introspection query, resolving issues with composite foreign keys in the subset system #398
- Updated sponsor logo #399
- Supported PostgreSQL 18 #380
- Added
postcodetype toMaskingtransformer for masking postcodes #362 - Added
skip_not_existparameter toJsontransformer operations. This allows skipping the operation if the key does not exist by the provided path #356 - Fixed temp file cleanup order in schema-only dump #379
- Fixed TOC entry duplication when merging schema and data sections #378
- Fixed RandomPerson hash generation #327
- Implemented
--quietflag forlist-dumpscommand #331. This makes it easy to use list-dumps in shell pipelines like:bash greenmask list-dumps -q | xargs -I {} greenmask delete {} - Implemented an official greenmask installation script #334. Now
greenmask can be installed with a single command:
bash curl -fsSL https://greenmask.io/install.sh | bash - Added a
--descriptionflag to the dump command, store it in metadata, and display it inlist-dumpsfor better context #339. - Fixed logic in ExcludeSchema filter: now correctly returns false for excluded schemas, preventing them from being restored #343
- Fix: ensure SEQUENCE SET and BLOB entries are restored after topologically sorted tables when
using
--restore-in-order#340 - Fixed command links in index documentation #337
- Fix: prevent panic when using
latestdump id withrestorecommand if no dumps exist in storage #346 - Fixed a panic in the introspection function when virtual references were set on tables without primary keys #309. Virtual references on such tables are still not supported, but the function no longer panics. Related MR #315.
- Fixed a case when greenmask hash engine ignores GREENMASK_GLOBAL_SALT #317 Related MR #318.
- Added support for dynamic parameters in the Replace transformer, allowing values to be dynamically replaced based on column values. This feature enables spreading the same value across multiple columns. See the documentation for examples. #293
- Updated the
--verboseflag to a boolean type. It is nowtrueif provided andfalseotherwise. #282 - Fixed a bug in the
RandomDatetransformer where minutes were not truncated as expected. #298 - Updated go dependencies to the latest. #304
- Bump dependencies and upgraded go to 1.24 #285.
- Changed Oid type in TOC archive library #286. Closes #284
- Revised documentation related to the log level values #287. Closes #283
- Implemented RandomCompany transformer -
it's a multi-column transformer, that generates a company data with attributes
CompanyNameandCompanyName#273 #274. - Fixed a case when transformers with column containers were not printed on
greenmask list-transformerscommand call #275. - Fixed
RandomEmailtransformer bug when an incorrect buffer size for hex-encoded symbols resulted in a\0appearing in the string #278. - Fixed typo in database_subset.md docs #271
- Revised README.md #280
Releases list:
Links
Feel free to reach out to us if you have any questions or need assistance:
Source records
- center.news_newsarticle · 3259 · 2026-10-03T04:08:35.169032Z
- official:news · n3259 · 2026-10-03T04:37:26.991318Z
- pgweb.news_newsarticle · 3259 · 2026-10-03T04:08:55.967155Z