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

Scientific Laws and LLMs Are the Same Shape

https://audriusberzanskis.substack.com/p/the-brute-force-formula
1•audriusber•1m ago•0 comments

Michael Reiter – The Palm Beach cop who Jeffrey Epstein couldn't stop

https://www.miamiherald.com/news/local/article315967185.html
1•embedding-shape•1m ago•0 comments

Can tech legends find the liar?

https://www.youtube.com/watch?v=EDCwQe7P8T0
1•skogstokig•4m ago•0 comments

Koppert Bumblebee Farming [video]

https://www.youtube.com/watch?v=oLucqyqg6L8
1•Onavo•10m ago•0 comments

Home alone: Remote work, isolation, and mental health

https://www.science.org/doi/10.1126/science.aec7671
2•speckx•10m ago•0 comments

AI Enthusiasts Race Against Time, Skeptics Race Against Entropy

https://charitydotwtf.substack.com/p/ai-enthusiasts-are-in-a-race-against
1•birdculture•13m ago•0 comments

If you put the Apple icon in reverse

https://daringfireball.net/2026/01/thoughts_and_observations_regarding_apple_creator_studio
1•baal80spam•15m ago•0 comments

A new robot's UI is body language

https://www.theattachmenteconomy.com/p/a-new-robots-ui-is-body-language
2•mikelgan•15m ago•1 comments

Catalog: Ecom Inspo

https://catalog.cool
2•handfuloflight•17m ago•0 comments

Taco Truck called TNT Tacos explodes, leaves two hospitalized with burns

https://www.wbbjtv.com/2026/06/05/local-taco-truck-explodes-leaving-two-hospitalized-with-severe-...
2•randycupertino•18m ago•0 comments

McDonald's Just Announced a Big Change to Its Drive-Thrus

https://www.allrecipes.com/mcdonalds-ai-drive-thru-change-11991109
1•mikhael•19m ago•1 comments

Our Great War Is a Spiritual War

https://geohot.github.io//blog/jekyll/update/2026/06/06/our-great-war.html
3•therepanic•21m ago•1 comments

Recent Thoughts on AI Use

https://blog.jsweeting.me/recent-thoughts-on-ai-use
1•speckx•21m ago•0 comments

Deterministic Implementation of a .NET Runtime

https://github.com/Smaug123/WoofWare.PawPrint
2•algorithmsRcool•22m ago•0 comments

Startup replaced $14K/mo cloud GPUs with 1000 M4 Mac Minis

https://twitter.com/TheAppleDesign/status/2063195530864542142
2•ksec•22m ago•2 comments

I made a browser game that teaches tmux

https://tmuxquest.com/
1•buzzycat•24m ago•0 comments

Trophic memory, deer, and a unique scientific object

https://thoughtforms.life/trophic-memory-deer-and-a-truly-unique-scientific-object/
4•BafS•25m ago•0 comments

Ask HN: Are your hidden links missing?

1•toomuchtodo•28m ago•0 comments

Mass Layoffs Caused by AI

https://olegdubovoi.com/thoughts/2026-06-04-mass-layoffs-caused-by-ai/
2•empiree•28m ago•0 comments

Show HN: I ported Xonotic (arena FPS) to WebAssembly with full P2P multiplayer

https://dpgame.xonotic.workers.dev/
5•astlouis44•32m ago•1 comments

Looking for Backdoors in Jane Street LLMs

https://www.alignmentforum.org/posts/a98MFPmqH54J2ayBn/looking-for-backdoors-in-jane-street-llms-1
2•allenleee•32m ago•0 comments

Claude, Teach Me Something

https://hugotunius.se/2025/10/26/claude-teach-me-something.html
1•dannyboland•36m ago•1 comments

We Forget

https://quinnmaclay.com/posts/forget
1•speckx•39m ago•0 comments

Ntsc-rs – open-source video emulation of analog TV and VHS artifacts

https://ntsc.rs/
27•gregsadetsky•43m ago•7 comments

Hermes – Community Web UI with Agent

https://get-hermes.ai/
1•SeriousM•45m ago•0 comments

Show HN: CCC: One place to manage all your Claude, Codex, Antigravity sessions

https://github.com/amirfish1/claude-command-center
1•amirfish2•45m ago•0 comments

posix_spawn syscall added (2012)

https://blog.netbsd.org/tnf/entry/posix_spawn_syscall_added
1•JdeBP•45m ago•0 comments

AI Memory Proves Inefficient: Tenure Project Detects 95% Error Rate

https://zamin.uz/en/technology/205592-ai-memory-proves-inefficient-tenure-project-detects-95-erro...
5•jflynt76•47m ago•0 comments

The dark origins of Disney fairy tales [video]

https://www.youtube.com/watch?v=pyDZpDkU46Y
2•gmays•48m ago•0 comments

Readers' top novels of all time

https://www.theguardian.com/books/ng-interactive/2026/jun/06/readers-top-100-novels-of-all-time
1•fallinditch•49m ago•0 comments