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

Show HN: Ask your repos what shipped in plain English

1•inferno22•38s ago•0 comments

Eurail B.V. has experienced a security breach

https://www.eurail.com/en/ni/data-security-incident
2•throw_await•2m ago•0 comments

Free eBook: whistleblowing back end dev gets framed, fired, gaslit, assaulted

https://www.amazon.com/dp/B0GC94SZXK
1•smafarin•2m ago•0 comments

Operational Excellence, the Tech Lead Lever

https://newsletter.terminalprompt.com/p/operational-excellence-the-tech-lead
1•joaoqalves•5m ago•0 comments

Zohran's high-risk, high-reward strategy

https://www.natesilver.net/p/zohrans-high-risk-high-reward-strategy
1•7777777phil•5m ago•0 comments

Interrail Data Security Incident

https://www.interrail.eu/en/ni/data-security-incident
1•vladde•6m ago•1 comments

30 Years of Programming at 44 Years Old

https://blainsmith.com/articles/30-years-of-programming-at-44-years-old/
1•speckx•6m ago•0 comments

Warhammer maker Games Workshop bans staff from using AI

https://www.telegraph.co.uk/business/2026/01/13/warhammer-maker-bans-staff-from-using-ai/
2•awnird•9m ago•1 comments

Where has all the money gone?

https://www.slowboring.com/p/where-has-all-the-money-gone
2•paulpauper•10m ago•0 comments

Toward an Archive of Everyday Urban Observations

https://medium.com/@dedede.de/toward-an-archive-of-everyday-urban-observations-e3d3cfc5607a
1•kappasan•10m ago•0 comments

The New Middle Eastern Cold War

https://critiqueanddigest.substack.com/p/the-saudi-pivot
1•paulpauper•10m ago•0 comments

Molecular Effects of Indoor Tanning

https://www.science.org/doi/10.1126/sciadv.ady4878
1•PaulHoule•11m ago•0 comments

Yup, 2026 Is Not Going to Be a Good Year for PC Builders

https://pcper.com/2026/01/yup-2026-is-not-going-to-be-a-good-year-for-pc-builders/
2•speckx•11m ago•0 comments

Do institutional investors raise housing prices?

https://nicholasdecker.substack.com/p/do-institutional-investors-raise
2•paulpauper•11m ago•0 comments

Scanning ultrasound as a neuromodulation therapy in Alzheimer's disease

https://pubmed.ncbi.nlm.nih.gov/41404527/
2•mpweiher•15m ago•0 comments

Open Sourcing Dicer: Databricks' Auto-Sharder

https://www.databricks.com/blog/open-sourcing-dicer-databricks-auto-sharder
6•vivek-jain•15m ago•2 comments

Ask HN: Vxlan over WireGuard or WireGuard over Vxlan?

2•mlhpdx•18m ago•0 comments

Claude Code Orchestrator v2.1 – Ralph Wiggums

https://github.com/reshashi/claude-orchestrator
1•shashimudunuri•19m ago•1 comments

Zero-sumness: a framework to reason about how to scale teams post AI

https://dust.tt/blog/build-vs-run
1•rafaepta•20m ago•0 comments

Ask HN: Are you underutilizing your insurance too?

1•nemath•21m ago•3 comments

Show HN: I built an email API because of limited domains and flaky inbound

https://www.simpleemailapi.dev/
1•hamzaawan•22m ago•1 comments

Uganda Cuts Internet Days Before Presidential Election

https://www.nytimes.com/2026/01/13/world/africa/uganda-election-internet.html
2•donohoe•23m ago•0 comments

Dept of Defense to embed Grok family of models into GenAI.mil

https://www.war.gov/News/Releases/Release/Article/4366573/the-war-department-to-expand-ai-arsenal...
4•toomanyrichies•24m ago•0 comments

VibeOs: You're still arguing about which model is better?

https://github.com/kaansenol5/VibeOS/blob/main/README.md
1•bakigul•25m ago•0 comments

SkyPilot: One system to use and manage all AI compute (K8s, 20 clouds, Slurm)

https://github.com/skypilot-org/skypilot
1•covi•26m ago•0 comments

Meta is closing down three VR studios as part of its metaverse cuts

https://www.theverge.com/news/861420/meta-reality-labs-layoffs-vr-studios-twisted-pixel-sanzaru-a...
5•jsheard•29m ago•1 comments

Instagram AI Influencers Are Defaming Celebrities with Sex Scandals

https://www.404media.co/instagram-ai-influencers-are-defaming-celebrities-with-sex-scandals/
24•cdrnsf•33m ago•8 comments

X Is a Power Problem, Not a Platform Problem

https://connectedplaces.online/reports/a-power-problem-not-a-platform-problem/
2•cdrnsf•34m ago•0 comments

Who remembers AWS Spot's auction era before the 2017 pricing change?

1•aleroawani•35m ago•0 comments

Chrome 142 Mixed Content Local Network Access

https://developer.chrome.com/blog/local-network-access
1•goodburb•36m ago•0 comments