frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•1y ago
Just joined a new company and they run a multi tenant database in postgres where each tenant is distinguished by their account ID. I'd like to be able to dump the data of a single account to my local instance to assist in debugging.

Problem is, many of the entities do not include an account ID. For example, a user can have an account ID but a user post will not but it will be tied to a user ID.

Also foreign keys aren't really implemented fully.

Are there any tools or techniques that could help make this process easier to do?

Comments

tudorg•1y ago
You can try with data subsetting tools, a few that I know are: greenmask, jailer, tonic condenser, and I think there are more. They are not exactly for your use case, but might help you a bit. The problem is most of these tools can walk foreign keys, but only in one directions.

Also, since you said FK are not fully implemented, then there just won't be enough information for them to work with. So you can either work on fixing the foreign keys or have more complex scripts.

polishdude20•1y ago
Thanks for the suggestions!

Yeah due to the unavailability of FK's, I'd have to somehow map certain ID columns to the tables they're for, accounting for slight naming convention differences.

woyten•1y ago
In case you don’t have FKs you could specify virtual foreign keys in Greenmask.

Check out docs for details

https://docs.greenmask.io/latest/database_subset/#virtual-re...

abhisek•1y ago
This is poor design. Multi-tenant data model design must have a tenant or segment ID for every tenant segmented tables. While it may not be a problem initially but as the business grows, you may need to move tenant data to separate DBs or even different regions based on compliance requirements. IMHO it is a good idea to run DB migrations and have a tenant ID populated in all tenant segmented tables
polishdude20•1y ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Why the Ocean Cleanup Hasn't Solved the Plastic Pollution Crisis

https://therevelator.org/why-ocean-cleanup-has-not-solved-plastic-pollution/
1•sohkamyung•43s ago•0 comments

Netherlands lists Israel as a threat to its national security for the first time

https://www.trtworld.com/article/911b7ff6c075
1•robtherobber•1m ago•0 comments

Slack is launching collaborative vibe-coding channels

https://www.theverge.com/tech/982628/slack-code-vibe-coding-channels-launch
1•thm•2m ago•0 comments

More than 150 Polymarket wallets may have traded on military secrets

https://www.reuters.com/business/finance/more-than-150-polymarket-wallets-may-have-traded-militar...
1•thm•2m ago•0 comments

Impact of EU packaging rules from a small business perspective (Reddit thread)

https://www.reddit.com/r/europe/comments/1vrz88a/comment/p4i3hoc/
1•dgellow•3m ago•1 comments

Use the built-in GELU, don't roll your own

https://www.gilesthomas.com/2026/08/built-in-gelu
1•ibobev•3m ago•0 comments

Solving the Flat Cube

https://mathenchant.wordpress.com/2026/08/19/solving-the-flat-cube/
1•ibobev•4m ago•0 comments

Taylor Farms became a top salad supplier before US diarrhea outbreak

https://www.reuters.com/business/healthcare-pharmaceuticals/green-giant-how-taylor-farms-became-t...
1•cramer4next•4m ago•0 comments

Parsing IP addresses in C# at crazy speeds

https://lemire.me/blog/2026/08/19/parsing-ip-addresses-in-c-at-crazy-speeds/
1•ibobev•4m ago•0 comments

Nancy Cartwright: Is It All a Big Lie?

https://www.zeit.de/feuilleton/2026-08/nancy-cartwright-wissenschaft-philosophie-gesetze-verlaess...
1•Tomte•7m ago•0 comments

Show HN: OlumJS – Components are .html files, attributes are code or strings

https://www.olumjs.top/
3•eissapk•8m ago•0 comments

Show HN: ArchSpec – Static architecture linter for Ruby

https://archspecrb.dev/
2•earcar•8m ago•0 comments

Xorg-Server 26.0.99.901

https://lists.x.org/archives/xorg-announce/2026-August/003741.html
2•st_goliath•8m ago•0 comments

Idea to reduce AI token use at large orgs

2•mgav•9m ago•0 comments

Building Without Predicting

https://sive.rs/fit
2•simonebrunozzi•9m ago•0 comments

Show HN: Sentrint, a security scanner for projects build with LLMs

https://sentrint.com/
2•Gourabdg•12m ago•2 comments

We replaced our ledger with two functions

https://river.com/content/we-replaced-our-ledger-with-two-functions
4•leishman•13m ago•0 comments

Zellij 0.45.0: nested sessions, Kitty graphics, a fresh UI

https://zellij.dev/news/nested-sessions-kitty-graphics-new-ui/
3•peterhajas•13m ago•0 comments

Isochronic tones: what they're good for

https://medium.com/@6thMind/isochronic-tones-what-theyre-actually-good-for-and-the-advantage-nobo...
2•smanuel•14m ago•0 comments

GOP issues stark warning to AI companies

https://www.axios.com/2026/08/19/gop-data-center-memo-ai-election
2•anon373839•14m ago•1 comments

Protocol-Aware Deterministic Simulation Testing

https://tigerbeetle.com/blog/2026-08-20-protocol-aware-dst/
6•jorangreef•15m ago•0 comments

Show HN: Open Terminal – global chat built with WebSockets

https://openterminal-sigma.vercel.app/
3•hito20•15m ago•0 comments

Static electricity is a mystery, and scientists are all charged up

https://www.sciencenews.org/article/static-electricity-is-a-mystery
1•sohkamyung•15m ago•0 comments

LinkedIn cracks down on automated content with AI detection button

https://www.campaignindia.in/article/linkedin-cracks-down-on-automated-content-with-new-seems-lik...
2•qikouki•16m ago•0 comments

Show HN: Languageme – Learning new languages with Claude Code by dripping

https://github.com/magiclex/languageme
1•LexSiga•16m ago•0 comments

WireGuard-Native NAT Traversal

https://www.firezone.dev/blog/nothing-on-the-wire-but-wireguard
1•jamilbk•16m ago•0 comments

Good Enough

https://bookofjoe2.blogspot.com/2026/08/good-enough.html
1•bookofjoe•18m ago•0 comments

Conway's Game of Life, in real life

https://blog.coredump.cx/p/conways-game-of-life-in-real-life
2•surprisetalk•19m ago•0 comments

Raylib Examples in Jolt

https://raylib-jlt.b12n.app/
3•yogthos•19m ago•0 comments

Amazon drone delivery is expanding to nearly 500 cities and towns this year

https://www.aboutamazon.com/news/transportation/amazon-prime-air-drone-delivery-expansion
2•PhaedrusV•19m ago•0 comments