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

Digital sovereignty isn't just a buzzword – it's the future

https://www.theregister.com/2026/04/13/digital_sovereignty/
1•beardyw•2m ago•0 comments

Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders

https://www.msn.com/en-us/news/us/can-ai-be-a-child-of-god-inside-anthropic-s-meeting-with-christ...
1•benkan•2m ago•0 comments

Did Tom Steyer Buy His Own Prediction Market? The Data Says Maybe

https://simplefunctions.dev/opinions/steyer-prediction-market-self-promotion
1•patrickliu0077•3m ago•1 comments

Y Combinator lets you cross the line [video]

https://www.youtube.com/watch?v=ptT_LGfT69k
1•waihtis•5m ago•0 comments

Sadly, the End of Star Trek Is Now Official

https://screenrant.com/star-trek-strange-new-worlds-starfleet-academy-sets-destroyed/
1•benkan•5m ago•0 comments

Ask HN: Is Codex really on Par with Claude Code?

1•shivang2607•5m ago•0 comments

Booking.com warns customers of possible data and security breach

https://www.abc.net.au/news/2026-04-13/booking-com-data-security-breach-personal-details/106557630
2•volongoto•6m ago•0 comments

Can't reach private IPv6 hosts on networks without global IPv6 connectivity

https://issues.chromium.org/issues/40435291#comment39
1•anotherhue•10m ago•1 comments

Show HN: Manico – macOS app switcher where single keys activate apps

1•nank1ro•13m ago•0 comments

Architecture as Code to Teach Humans and Agents About Architecture

https://www.oreilly.com/radar/architecture-as-code-to-teach-humans-and-agents-about-architecture/
1•BerislavLopac•13m ago•0 comments

Analysis of Claude Code cache bugs causing 10-20x token inflation

https://github.com/ArkNill/claude-code-hidden-problem-analysis
1•ankitg12•14m ago•0 comments

Show HN: Real-Time, Streaming SQL Queries on Flight Data

https://dashboard.transcend.modolap.com/queries?mode=demo
2•ronfriedhaber•17m ago•0 comments

Learn LLM Internals

https://github.com/amitshekhariitbhu/llm-internals
2•pallavishekhar•18m ago•0 comments

Ask HN: Are you negatively affected by the recent economic stagnation?

1•adinhitlore•20m ago•0 comments

Mythos, Muse, and the Opportunity Cost of Compute

https://stratechery.com/2026/mythos-muse-and-the-opportunity-cost-of-compute/
2•swolpers•21m ago•0 comments

Python Package Compiler:Package Matlab Programs for Deployment as Python Package

https://www.mathworks.com/help/compiler_sdk/ml_code/pythonpackagecompiler-app.html
1•teleforce•23m ago•0 comments

Claude Code Prompt Patcher

https://gist.github.com/roman01la/483d1db15043018096ac3babf5688881
2•sscaryterry•24m ago•1 comments

Ask HN: What is the most essential feature you expect from a home automation?

1•dr_inf•26m ago•0 comments

Build a Sovereign Local AI Stack: Ollama and Open WebUI and Pgvector 2026

1•anju-kushwaha•28m ago•0 comments

Donald Trump's America Is Deeply Unwell, and It's Time to Say So

https://newrepublic.com/article/208971/donald-trump-america-deeply-unwell-it-time-say
2•hkhn•31m ago•0 comments

I hacked a way to check my CV score before submitting on linkedin

https://cvrepair.guru/ats-checker
1•ahmedgmurtaza•31m ago•1 comments

After a Dark Week, Americans Should Turn to Jimmy Carter's Malaise Speech

https://www.liberalcurrents.com/after-a-dark-week-americans-should-turn-to-jimmy-carters-malaise-...
1•hkhn•33m ago•0 comments

Sentinel-Based Code Tracing via Runtime Code Section Patching

https://revers.engineering/
1•swq115•37m ago•0 comments

Show HN: MacBook Neo Review 2026

1•anju-kushwaha•38m ago•0 comments

Show HN: I built a benchmark platform for WordPress backup plugins

1•ibrahimwithi•45m ago•0 comments

We Raised $15M and Had 61% Uptime. Here's Every Mistake That Got Us There

https://medium.com/@me_24829/we-had-61-uptime-heres-every-mistake-that-got-us-there-cdcee1731a26
1•guigaribaldi•46m ago•0 comments

Claude Code – Disabling telemetry also disables 1-hour prompt cache TTL

https://github.com/anthropics/claude-code/issues/45381
4•dsr12•50m ago•0 comments

Show HN: Kyomu - 13 puzzles from math and physics that map your cognitive style

https://mostlykiguess.github.io/Kyomu/
2•mostlyk•52m ago•0 comments

Show HN: SkillCompass – open-source quality evaluator for your AI skills

https://github.com/Evol-ai/SkillCompass
1•yo103jg•55m ago•0 comments

Turbo Pascal on Your iPhone

https://pascal.kulman.sk
2•ig0r0•58m ago•0 comments