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

United States vs. $124,700 in U.S. Currency

https://en.wikipedia.org/wiki/United_States_v._$124,700_in_U.S._Currency
1•razighter777•26s ago•0 comments

Ask HN: If AI makes your devs super productive, why layoff?

1•parpfish•28s ago•0 comments

Show HN: CastLoom Pro – Turn podcasts into a personal knowledge base

https://castloompro.toolooz.com/?lang=en
1•MikeLuLu•5m ago•0 comments

iOS 27 Will Reportedly Be Like Mac OS X Snow Leopard

https://www.macrumors.com/2026/03/15/ios-27-will-reportedly-be-like-mac-os-x-snow-leopard/
1•mefengl•7m ago•0 comments

Why I'm Suing Grammarly

https://www.nytimes.com/2026/03/13/opinion/ai-doppelganger-deepfake-grammarly.html
1•lxm•7m ago•0 comments

Training-Free Infinite Video Generation via Evolving Memory Tokens

https://memrope.github.io/
1•E-Reverance•7m ago•0 comments

The Answer Is Right in Front of You

https://substack.com/@lagz/note/p-191082824
1•lagz•18m ago•0 comments

SiO2 spheres for enhancing the fire safety and radiative cooling performance

https://www.sciencedirect.com/science/article/pii/S2589965125001679
1•PaulHoule•20m ago•0 comments

Clock-accurate FPGA replacement for NES PPU

https://github.com/andkorzh/PPU-LITE
2•zdw•21m ago•0 comments

Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

https://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo
2•JumpCrisscross•23m ago•0 comments

Getting the most out of Claude agent teams

https://dheer.co/claude-agent-teams/
1•bushido•26m ago•1 comments

Claude says no (GitHub gist)

https://gist.github.com/robertkarl/d57c05bda405fda810386611903a45f7
2•robertkarljr•26m ago•1 comments

Let AI control the browser securely

https://relay.proxybase.xyz
1•m00dy•27m ago•0 comments

One Battle After Another Review

https://www.tanishsmoviereviews.com/reviews/one_battle_after_another_2025.html
2•moviet•37m ago•2 comments

Remember Clippy

https://rememberclippy.com/
2•kierangill•40m ago•0 comments

Show HN: Synthea Fhir Data in BigQuery

1•brady_bastian•41m ago•0 comments

Nginx as an API gateway in 2026 – complete guide with real configs

https://www.grizzlypeaksoftware.com/articles/p/nginx-as-an-api-gateway-in-2026-the-complete-guide...
1•comgen42•41m ago•1 comments

Show HN: IdeaCred – automated scoring for GitHub repos

1•spranab•41m ago•0 comments

Death of 'He Is a Coding Machine'

https://medium.com/@ggonweb/death-of-he-is-a-coding-machine-f2f7c0818f8e
2•ggonweb•43m ago•0 comments

Warp-types: GPU shuffle UB becomes a compile error (Rust, Lean proof, zero cost)

https://github.com/modelmiser/warp-types
1•modelmiser•44m ago•1 comments

Swapped our heavy async pipeline for LEXINOVA

1•LEXINOVAFaqs•48m ago•0 comments

Show HN: Search for Apple Messages

https://github.com/dmd/imessage-search
2•dmd•49m ago•0 comments

Show HN: Regrada – The CI gate for LLM behavior

https://www.regrada.com/
1•matiasmolinolo•51m ago•0 comments

Show HN: Situation Monitor

https://www.situation-monitor.org/
1•zarathustra333•52m ago•0 comments

Interpret: China

https://interpret.csis.org/
1•gone35•53m ago•0 comments

Team House: How JSOC Uses Instagram Ads to Track Terrorists – Mike Yeagley [video]

https://www.youtube.com/watch?v=OACwlV9I5LM
1•NN88•53m ago•0 comments

Yeahchain, a high-throughput data sync layer

1•YeahchainTECH•53m ago•0 comments

Supply-chain attack using invisible code hits GitHub and other repositories

https://arstechnica.com/security/2026/03/supply-chain-attack-using-invisible-code-hits-github-and...
2•pabs3•54m ago•1 comments

Monitoring high-load systems with PULSESUN

1•PULSESUN•1h ago•0 comments

Automating data parsing for Mindzo Investment Union

1•MindzoFAQs•1h ago•0 comments