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•10mo 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

A Deep Dive into Tinygrad AI Compiler

https://tinyblog-phi.vercel.app/tinygrad
1•ppadjin123•6m ago•0 comments

Strait of Hormuz Gameplay Demo [video]

https://www.youtube.com/watch?v=XVY7WAT4OdE
1•us321•6m ago•0 comments

Lawsuit over who owns top ranked coding bootcamp Codesmith

https://michaelnovati.substack.com/p/codesmith-in-court-the-hard-parts
1•michaelnovati•11m ago•0 comments

Apple Stops Accepting Orders for Some Mac Mini and Mac Studio Models

https://www.macrumors.com/2026/04/11/some-mac-mini-mac-studio-currently-unavailable/
1•Brajeshwar•13m ago•0 comments

Salesforce and ServiceNow are squaring off in the battle for the helpdesk

https://www.theregister.com/2026/04/11/salesforce_vs_servicenow_itsm_battle/
1•Brajeshwar•14m ago•0 comments

Show HN: Bullseye2D – A Dart library for cross-platform 2D games

https://github.com/bullseye2d/bullseye2d
2•joemanaco•15m ago•0 comments

Apple update looks like Czech mate for locked-out iPhone user

https://www.theregister.com/2026/04/12/ios_passcode_bug/
4•OuterVale•15m ago•0 comments

Phyphox – Physical Experiments Using a Smartphone

https://phyphox.org/
2•_Microft•16m ago•1 comments

Asha Bhosle: The sound of Bollywood dies aged 92

https://www.bbc.com/news/articles/c6ppd0qdp1do
1•Brajeshwar•20m ago•1 comments

Joborigo – Job application tracker with ghost detection and employer API

https://www.joborigo.com/
1•sasanin•20m ago•1 comments

On Division by Three

https://leahneukirchen.org/blog/archive/2023/11.html
1•jruohonen•21m ago•0 comments

Show HN: Food Decoder

https://github.com/adityaprasad-sudo/FoodDecoder
1•PotatoAditya•22m ago•1 comments

Angular Compiler in Rust – Experimental and 10x faster

https://voidzero.dev/posts/oxc-angular-compiler
1•AbuAssar•24m ago•0 comments

Podman Kube Generator – Web UI to Generate Kubernetes YAML and Quadlet Configs

https://github.com/Garfieldttt/podman-kube-generator
2•Garfieldttt•28m ago•0 comments

System Integrity Protection: The misunderstood (macos) setting

https://khronokernel.com/macos/2022/12/09/SIP.html
1•gurjeet•28m ago•0 comments

Can AI Think?

https://medium.com/@henry.ponco/can-ai-ever-truly-think-92d62e509862
1•ponco•29m ago•2 comments

Is Math Big or Small?

https://chessapig.github.io/talks/Big-Small
1•robinhouston•29m ago•0 comments

Show HN: Attempting to Design a Minimalistic Website

https://soham-saha.github.io/
1•omegacombinator•29m ago•0 comments

Sorting with Singeli

https://github.com/mlochbaum/SingeliSort
1•tosh•32m ago•0 comments

How to Read Headphone Measurements (2020)

https://crinacle.com/2020/04/08/graphs-101-how-to-read-headphone-measurements/
1•tosh•32m ago•0 comments

Ask HN: How do you retain what you learn from podcasts?

2•LifeOfKP•36m ago•2 comments

A/B/U Review System

https://openresearchinstitute.org/onboarding/A_B_U.html
1•patcon•38m ago•0 comments

ORAC-NT – A 3D Tactical Bridge for NASA Kepler/Tess Star Stability

https://orac-nt.streamlit.app/
2•DREDREG•38m ago•1 comments

How the "AI Loser" may end up winning

https://adlrocha.substack.com/p/adlrocha-how-the-ai-loser-may-end
1•adlrocha•39m ago•0 comments

The big math changes to small math by same change and solve in Matlab BVP4C

https://www.nature.com/articles/s41598-025-18302-5
1•internet_points•43m ago•0 comments

Build nice terminal UI with Bubble Tea

https://www.prskavec.net/post/bubbletea/
2•swq115•45m ago•0 comments

Ask HN: How is everyone dealing with the increase of code reviews?

2•Lethalman•48m ago•0 comments

The API Key Is Dead: A Blueprint for Agent Identity in the Age of MCP

https://kontext.security/content/oauth-for-mcp-agents
1•mc-serious•49m ago•0 comments

Show HN: OpenPolicy Plus – Cloud platform for managing your privacy policies

https://plus.openpolicy.sh/
2•jamie_davenport•50m ago•0 comments

DSPi – A powerful, open-source DSP

https://www.audiosciencereview.com/forum/index.php?threads/introducing-dspi-a-powerful-user-frien...
2•djsedaw•56m ago•1 comments