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

Progress warns of critical MOVEit Automation auth bypass flaw

https://www.bleepingcomputer.com/news/security/moveit-automation-customers-warned-to-patch-critic...
2•Brajeshwar•46s ago•0 comments

The AI Phone Assault Has Begun

https://www.alanwsmith.com/en/3d/bb/ci/ro/
1•abnercoimbre•1m ago•0 comments

Introducing Skills Over MCP – The new way to distribute skills

https://skillsovermcp.com
1•dispencer•2m ago•0 comments

The Web of Babel: Browsing the Internet's Latent Space

https://blog.douwe.com/2026/05/the-web-of-babel-browsing-internets.html
2•dosinga•2m ago•0 comments

Alaska House advances bill regulating autonomous vehicles

https://alaskabeacon.com/briefs/alaska-house-advances-bill-regulating-autonomous-vehicles/
1•rolph•3m ago•0 comments

Iran Attacks UAE

https://www.reuters.com/world/middle-east/uaes-fujairah-says-fire-breaks-out-petroleum-complex-af...
2•breppp•4m ago•0 comments

OpenAI, Google, and Microsoft Back Bill to Fund 'AI Literacy' in Schools

https://www.404media.co/literacy-in-future-technologies-artificial-intelligence-act-adam-schiff-m...
2•cdrnsf•6m ago•0 comments

TinyFish Web Search and Fetch are now free, everywhere

https://www.tinyfish.ai/blog/search-and-fetch-are-now-free-for-every-agent-everywhere
3•tiny-automates•6m ago•0 comments

RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust

https://ratex.lites.dev/
1•atilimcetin•8m ago•0 comments

Keywords

https://keywords.bagpuss.org
1•scrumper•8m ago•1 comments

Secluso: E2E Encrypted Home Security Camera

https://secluso.com/
1•akyuu•8m ago•0 comments

What Addiction Does to the Brain

https://knowablemagazine.org/content/article/mind/2026/what-addiction-does-to-synapses-in-brain
1•gmays•9m ago•0 comments

How we know if our agent is right

https://www.mendral.com/blog/how-we-know-if-our-agent-is-right
3•shad42•10m ago•0 comments

Cursed Browser: web rendering engine using visual-LLMs

https://github.com/scosman/cursed_browser
4•scosman•11m ago•1 comments

'Longevity drug' rapamycin may have a surprising impact on exercise

https://www.washingtonpost.com/wellness/2026/04/29/rapamycin-exercise-study/
2•evo_9•15m ago•0 comments

Homebridge 2.0 is here, and it speaks Matter

https://www.theverge.com/tech/922877/homebridge-2-0-matter-update-robot-vacuums
2•Brajeshwar•15m ago•0 comments

Palantir Comes to Campus

https://nymag.com/intelligencer/article/palantir-yale-conference-ai.html
2•spenvo•15m ago•0 comments

Tokyo considering more trash cans following litter increase in touristed area

https://japantoday.com/category/features/lifestyle/tokyo-considering-law-requiring-more-trash-can...
3•firasd•15m ago•0 comments

Tribe v2: An AI Model of the Human Brain, Predicting Neural Responses

https://aidemos.atmeta.com/tribev2/
1•fidotron•15m ago•1 comments

Formula 1 plans to return to V8 engines by 2030

https://www.aljazeera.com/sports/2026/5/4/formula-one-plans-return-to-v8-engines-as-electrical-re...
1•butlike•16m ago•0 comments

Amazon Supply Chain Services – Amazon's supply chain is now yours

https://supplychain.amazon.com/
1•tmoertel•16m ago•0 comments

OpenAI Finalizes $10B Joint Venture with PE Firms to Deploy AI

https://www.bloomberg.com/news/articles/2026-05-04/openai-finalizes-10-billion-joint-venture-with...
2•nathanh•16m ago•0 comments

Async Rust never left the MVP state

https://tweedegolf.nl/en/blog/237/async-rust-never-left-the-mvp-state
4•bo0tzz•16m ago•0 comments

Mark Zuckerberg's virtual reality demo (2016) [video]

https://www.facebook.com/zuck/videos/heres-the-crazy-virtual-reality-demo-i-did-live-on-stage-at-...
1•downbad_•17m ago•1 comments

Can an A.I. Company Ever Be Good?

https://www.nytimes.com/2026/04/26/opinion/ai-company-good-altruism.html
2•pavel_lishin•17m ago•0 comments

Pixel 11 leak reveals new camera hardware, Tensor G6 details, more specs

https://9to5google.com/2026/05/04/google-pixel-11-specs-cameras-tensor-g6-leak/
2•Alupis•18m ago•1 comments

Lifting a 30k-Pound Mast from a Warship Built a Record-Breaking 261 Years Ago

https://www.smithsonianmag.com/smart-news/how-do-you-lift-a-30000-pound-mast-from-a-warship-built...
1•Alupis•19m ago•0 comments

Can anyone point me to a ShowHN first post policy documentation?

3•upwindchange•20m ago•1 comments

The Morass of Injustice

https://www.craigmurray.org.uk/archives/2026/05/the-morass-of-injustice/
2•jjgreen•20m ago•0 comments

Huawei's Programming Language, Cangjie [video]

https://www.youtube.com/watch?v=ujpl5_TmAaE
1•fhn•20m ago•1 comments