frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

3•polishdude20•8mo 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•8mo 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•8mo 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•7mo 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•8mo 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•8mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

A Pail of Air (1951)

https://www.gutenberg.org/cache/epub/51461/pg51461-images.html
1•debo_•24s ago•0 comments

Anthropic's official plugin gets the core principle of the Ralph Wiggum wrong

https://github.com/0livare/ralph-wiggum-ai
1•skramzy•34s ago•1 comments

Dropbox changing policy: Now threatening to delete files over storage limit

1•huksley•1m ago•0 comments

Tell HN: 1B Jobs on GitHub Actions

1•dorianmariecom•1m ago•0 comments

Cacoco: Sbardef Editor Written in Rust

https://github.com/lizzieshinkicker/Cacoco
1•klaussilveira•1m ago•0 comments

Show HN: I lost €50K to non-paying clients, so I built an AI contract platform

https://www.accordio.ai/
1•deduxer•2m ago•0 comments

Ask HN: What to teach my kid if AI does math and CS?

1•devShark•3m ago•0 comments

Show HN: First professional-grade AI fonts

https://fonthero.com/
1•jrd79•4m ago•0 comments

FLUX.2 [Klein]: Towards Interactive Visual Intelligence

https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence
1•meetpateltech•4m ago•0 comments

Researchers use Apple Watch to train a disease-detection AI

https://www.wareable.com/health-and-wellbeing/empirical-health-mit-jets-ai-health-tracking-model-...
1•brandonb•5m ago•0 comments

How local network privacy could you

https://eclecticlight.co/2026/01/14/how-local-network-privacy-could-affect-you/
2•lladnar•5m ago•0 comments

Researchers find trees could spruce up future water conservation efforts

https://phys.org/news/2025-12-trees-spruce-future-efforts.html
1•PaulHoule•6m ago•0 comments

From Blobs to Managed Context: Why AI Applications Need a Stateful Context Layer

https://zhihanz.github.io/posts/from-blobs-to-managed-context/
1•georgehe9•6m ago•0 comments

Latency Monitor: lightweight tool for TCP and UDP monitoring

https://mirceaulinic.net/2026-01-15-latency-monitor/
1•mirceaulinic•7m ago•1 comments

Is a billion dollars still cool?

https://restofworld.org/2026/unicorn-billion-dollar-startups/
1•donohoe•7m ago•0 comments

Wikipedia signs AI training deals with Microsoft, Meta, and Amazon

https://arstechnica.com/ai/2026/01/wikipedia-will-share-content-with-ai-firms-in-new-licensing-de...
2•AdmiralAsshat•7m ago•1 comments

Pokemon Friends: a scam with cute characters

https://ivie.codes/page/pokemon-friends
1•Charmunk•7m ago•0 comments

Protest Movements Could Be More Effective Than the Best Charities (2022)

https://ssir.org/articles/entry/protest_movements_could_be_more_effective_than_the_best_charities
1•1d22a•8m ago•0 comments

Training large language models on narrow tasks can lead to broad misalignment

https://www.nature.com/articles/s41586-025-09937-5
1•Anon84•9m ago•0 comments

Supercharge Your Bun Workflow with bun-tasks

https://github.com/gxy5202/bun-tasks
1•gxy5202•9m ago•1 comments

Can LLMs Express Their Uncertainty? Not

https://arxiv.org/abs/2306.13063
2•apwheele•10m ago•0 comments

Quest for a drug that lowers an artery-clogging particle nears finish line

https://www.washingtonpost.com/health/2026/01/02/lpa-heart-clinical-trial-treatment/
1•brandonb•11m ago•0 comments

What is the business behind publishing AI models?

1•john1203•11m ago•0 comments

Building software with AI loops: 12 observations from Geoff Huntley (Ralph)

https://twitter.com/jaimefjorge/status/2011381315929583747
1•jaimefjorge•14m ago•0 comments

Using Replit and Cursor to build the same app

https://blog.engora.com/2026/01/replit-vs-cursor-who-wins.html
2•Vermin2000•14m ago•1 comments

Self-Evolving Search Agents Without Training Data

https://twitter.com/dair_ai/status/2011458048443994185
1•kewun•14m ago•0 comments

A Pathway to Privacy from AI – while using it?

https://angadh.com/claude-code-project-1-follow-up-1
1•gmays•15m ago•0 comments

Secure containers market: from men's room at Taylor Swift concert to NBA finals

https://www.chainguard.dev/unchained/well-that-escalated-quickly-zero-cves-lots-of-vendors
3•prdonahue•16m ago•0 comments

My Opinion on Spelling Run Time vs. Run-Time vs. Runtime

https://bobrubbens.nl/post/my-opinion-on-spelling-runtime/
1•birdculture•16m ago•0 comments

Daily News Aggregator and Reader

https://github.com/lucianmarin/news
1•lcnmrn•16m ago•0 comments