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

Ask HN: How close are we to local LLM modems being

1•AbstractH24•55s ago•0 comments

Go-Harness

https://github.com/Protocol-Lattice/go-harness
1•raezil•2m ago•1 comments

Notification of Data Security Incident – Texas Parks and Wildlife

https://tpwd.texas.gov/about/notification-of-data-security-incident
1•geox•4m ago•0 comments

Show HN: Monolisa v3 – a typeface for developers and creatives

https://www.monolisa.dev/
1•bebraw•5m ago•0 comments

MiniPixelFont Generator

https://xem.github.io/miniPixelFont/js13k.html
2•javatuts•7m ago•0 comments

Tabulator – interactive JavaScript tables and data grids

https://github.com/tabulator-tables/tabulator
1•javatuts•7m ago•0 comments

Show HN: Spookling – An iPhone AI Agent for WhatsApp and Calendar

1•salman10•9m ago•0 comments

Putin Has a New Tool to Monitor Russians (2025)

https://www.theatlantic.com/international/archive/2025/10/russia-super-app-max/684524/
1•dotcoma•9m ago•0 comments

The World Now Has More Bot Traffic Than Human Traffic

https://newsletter.signoz.io/p/the-world-now-has-more-bot-traffic
2•birdculture•9m ago•0 comments

Democracy Needs Friction to Function

https://www.noemamag.com/democracy-needs-friction-to-function/
1•hamburgererror•10m ago•0 comments

Genuinely, my all-time favourite image: Mamenchisaurus hochuanensis

https://svpow.com/2026/06/04/genuinely-my-all-time-favourite-image-mamenchisaurus-hochuanensis/
1•surprisetalk•10m ago•0 comments

We should vaccinate wild animals

https://worksinprogress.co/issue/why-we-should-vaccinate-wild-animals/
2•surprisetalk•11m ago•0 comments

Nvidia Halos

https://www.nvidia.com/en-us/ai-trust-center/halos/autonomous-vehicles/
11•ilreb•13m ago•0 comments

All time best of Split Depth GIFs

https://old.reddit.com/r/SplitDepthGIFS/top/
1•mxfh•14m ago•0 comments

Show HN: A voxel editor for decorating a home for a Tamagotchi-like creature

https://kamio.ai/studio
1•eric_khun•14m ago•0 comments

Two Singaporean brothers turns unsolvable math into post-quantum encryption

https://startupfortune.com/two-singaporean-brothers-turned-unsolvable-math-into-southeast-asias-f...
1•insanetech•17m ago•0 comments

Show HN: Ziex, a Zig web framework reaching its first release

2•nurulhudaapon•17m ago•0 comments

Moebius: 0.2B image inpainting model with 10B-level performance

https://hustvl.github.io/Moebius/
2•DSemba•18m ago•0 comments

Trump unveiled Qatar's gifted Air Force One this week

https://respublica.media/en/trump-unveiled-qatars-gifted-air-force-one-this-week/
3•Veldoran•18m ago•0 comments

Tesla driver says it was on Autopilot before fatal Texas home crash

https://electrek.co/2026/06/20/tesla-autopilot-katy-texas-home-crash-woman-killed/
3•croes•18m ago•0 comments

AI Is Boosting Productivity at Home – But Not Equally

https://www.marshall.usc.edu/news/new-research-reveals-ai-is-boosting-productivity-at-home--but-n...
1•giuliomagnifico•18m ago•0 comments

Alan Greenspan's Essay: "Gold and Economic Freedom"

https://ritholtz.com/2008/11/gold-and-economic-freedom-by-alan-greenspan/
1•bhouston•18m ago•0 comments

Ask HN: Is there still value in making apps?

1•darth-pixit•19m ago•1 comments

AI effect: People are taking up skills for no money, just to feel human

https://siliconcanals.com/m-as-ai-eats-into-paid-creative-work-people-are-taking-up-the-same-skil...
1•achow•19m ago•1 comments

China Became an Energy Superpower [video]

https://www.youtube.com/watch?v=xCUASv01bVY
1•hunglee2•21m ago•0 comments

Robotic exoskeleton could redefine how stroke survivors relearn to walk

https://news.northwestern.edu/stories/2026/06/new-exoskeleton-therapy-could-redefine-how-stroke-s...
2•gmays•21m ago•0 comments

Polaris: A Native macOS App for Kamal

https://polaris-deploy.com/
1•thunderbong•21m ago•0 comments

Hacker News Games in Videos

https://video.intellios.ai/
1•coolwulf•21m ago•0 comments

Extreme Dynamic Symmetry Enables Omnidirectional and Multifunctional Robots

https://generalroboticslab.com/Argus
1•speckx•21m ago•0 comments

Fungus-Growing Ants

https://en.wikipedia.org/wiki/Fungus-growing_ants
1•CGMthrowaway•22m ago•0 comments