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

Matlab programming language sinking in popularity

https://www.infoworld.com/article/4207496/matlab-programming-language-sinking-in-popularity.html
1•theanonymousone•1m ago•0 comments

Sharding a routing table for lock-free reads in Go

https://vincent.bernat.ch/en/blog/2026-akvorado-rib-sharding
1•vbernat•1m ago•0 comments

Manufacturing Consensus: Propaganda in the Era of Automation and Anonymity(2023)

https://ijoc.org/index.php/ijoc/article/download/26942/5263/107089
1•Jimmc414•2m ago•0 comments

OpenAI reportedly completed a $7B employee tender offer

https://techcrunch.com/2026/08/10/openai-reportedly-completed-a-7-billion-employee-tender-offer/
1•ashurandi•4m ago•0 comments

Operation Earnest Voice (Centcom)

https://en.wikipedia.org/wiki/Operation_Earnest_Voice
1•Jimmc414•4m ago•0 comments

Analytic Treatment of Tipping Points for Social Consensus in Large Networks-2013

https://arxiv.org/abs/1304.7401
1•Jimmc414•6m ago•1 comments

Meta wiped key scam evidence in Andrew Forrest suit, US judge rules

https://www.afr.com/technology/meta-wiped-key-scam-evidence-in-andrew-forrest-suit-us-judge-rules...
3•asdefghyk•13m ago•1 comments

Pakistan requires fingerprint scan transfer to govt. db for SIM card activation

https://www.pta.gov.pk/category/biometric-verification-771039280-2023-05-30
2•walrus01•13m ago•0 comments

Show HN: I vibecoded a heavy lift drone

https://lukeiseman.substack.com/p/i-vibecoded-a-drone
1•liseman•16m ago•0 comments

GPT 5.6 Cyber

https://openai.com/index/expanding-daybreak-as-the-cyber-defense-window-narrows/#websocket-authen...
1•smusamashah•19m ago•0 comments

Folding Prion Protein with AI

https://blog.georeactor.com/prionbio-1
1•mapmeld•21m ago•0 comments

Microsoft Responds to Outcry After Quiet Enterprise Install of Beta 'Photos' App

https://www.neowin.net/news/windows-11-admins-unhappy-as-microsoft-found-installing-unexpected-ne...
4•m463•25m ago•1 comments

Egg: Fast and Extensible Equality Saturation

https://cacm.acm.org/research-highlights/egg-fast-and-extensible-equality-saturation/
1•t-3•28m ago•0 comments

More Young College Graduates Are Living at Home. Is That a Bad Thing?

https://www.nytimes.com/2026/08/02/business/college-graduates-living-at-home.html
2•littlexsparkee•32m ago•3 comments

27x Faster Terminal Text Effects Rust Port

https://github.com/omacom-io/ttfx
2•smusamashah•36m ago•1 comments

Muse Glimmer

https://simonwillison.net/2026/Aug/10/introducing-muse-glimmer/
3•raybb•37m ago•0 comments

HN is good for marketing other than communication or study!?

3•lilerjee•37m ago•0 comments

Demon's souls prototype presentation for gameshare iv [video]

https://www.youtube.com/watch?v=qVK_rc-tnGY
2•andrekandre•38m ago•1 comments

Updated GPG Key for Signing Firefox and Thunderbird Releases

https://blog.mozilla.org/security/2026/08/10/updated-gpg-key-for-signing-firefox-and-thunderbird-...
12•csmantle•39m ago•1 comments

Language models transmit behavioural traits through hidden signals in data

https://www.nature.com/articles/s41586-026-10319-8
3•Phithagoras•41m ago•0 comments

Teaching an Open Model to Do Science

https://www.arcee.ai/blog/teaching-an-open-model-to-do-science
2•gmays•42m ago•0 comments

VSCode-code-widgets: Interactive widgets embedded in source code

https://github.com/CZDanol/vscode-code-widgets
2•thunderbong•45m ago•0 comments

'We Did Our Best': Metaphors of Parenting and AI

https://www.nybooks.com/articles/2026/06/25/we-did-our-best-ai-meghan-ogieblyn/
3•mitchbob•50m ago•1 comments

Why My Father Is Wrong: A Defense of Guitar Hero

https://whatever.scalzi.com/2026/08/10/why-my-father-is-wrong-a-defense-of-guitar-hero/
10•Tomte•51m ago•1 comments

Don't Classify. Hallucinate

https://softwaredoug.com/blog/2026/08/10/hypothetical-classifications.html
2•Tomte•52m ago•0 comments

Show HN: Seedle, daily -dle for Minecraft seeds

https://seedle.loch.tools/
2•lwansbrough•56m ago•0 comments

Plethora – your new (social) platform for Interactive Media

https://plethora.studio/
2•zenarin•56m ago•1 comments

A Technical Framework for Bring Your Own Cloud Applications

https://byocanywhere.org/
2•aloknnikhil•1h ago•0 comments

Pretense of You

https://iamwisdom.substack.com/p/pretense-of-you
2•I_Am_Wisdom•1h ago•0 comments

Wingdings (Album) 2026

https://en.wikipedia.org/wiki/Wingdings_(album)
7•ddxv•1h ago•1 comments