Just to tail on the “Postgres is a better document DB than Mongo” theme, there’s now a QuickJS procedural extension for postgres (in addition to the earlier but clunkier plv8):
https://github.com/plv8/pljs https://bellard.org/quickjs/quickjs.html
The rub is that you can yeet any document data you like into JSONB columns, and mung them efficiently and freely with JS — taking all the upsides of Mongo, yet letting you merge them seamlessly with the full capabilities of PG’s relational model.
Seconding the zstd rec.
For anyone like OP worried about having an offline copy of the utility on hand, I strongly recommend throwing a copy of cosmos on your recovery drive. It’s a set of common tools that are compiled to a special binary format that’ll run on all major OSes (and ARM64), including
zstd
.