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

What Happens When Your Stripe Payment Fails

https://dvcoolarun.com/stripe/system-design/payments/2026/03/11/What-Happens-When-Your-Stripe-Pay...
1•dvcoolarun•25s ago•0 comments

Elastic Docs Skills

https://github.com/elastic/elastic-docs-skills
1•taubek•40s ago•0 comments

The Death of Coding Is Cancelled

https://medium.com/predict/the-death-of-coding-is-cancelled-why-your-ai-assistant-is-quickly-beco...
1•youknownothing•41s ago•0 comments

Chasing Boring at Just the Right Speed

https://log.andvari.net/no-mttr.html
1•rdoherty•51s ago•0 comments

RedwoodSDK v1.0 released – We stopped breaking everything

https://rwsdk.com
1•pistoriusp•2m ago•0 comments

Near token jumps 17% after 'Confidential Intents' launch

https://www.coindesk.com/markets/2026/03/02/near-token-jumps-17-after-confidential-intents-launch...
1•PaulHoule•2m ago•0 comments

The Complexity of a 60-Line Script

https://www.etiq.ai/posts/why-visual-programming-and-testing-are-the-next-step
1•robertcizmas•2m ago•1 comments

The Browser Becomes Your WordPress

https://wordpress.org/news/2026/03/announcing-my-wordpress/
2•tiernano•4m ago•0 comments

Hitching Your Software Engineering Firm's Positioning to a Platform

https://punctuation.com/hitching-your-software-engineering-firms-positioning-to-a-platform/
1•herbertl•4m ago•0 comments

Show HN: Opensoul – Open-source agentic marketing stack (6 AI agents)

https://github.com/iamevandrake/opensoul
1•iamevandrake•4m ago•1 comments

Applying Statistics to LLM Evaluations

https://cameronrwolfe.substack.com/p/stats-llm-evals
2•Brajeshwar•7m ago•0 comments

Let yourself fall down more

https://ntietz.com/blog/let-yourself-fall-down-more/
3•Brajeshwar•7m ago•0 comments

After the AI Revolution

https://www.noemamag.com/after-the-ai-revolution/
1•Brajeshwar•7m ago•0 comments

A Chrome extension to export a Gemini chat or selected messages

https://chromewebstore.google.com/detail/gemini-exporter-save-gemi/lgipeakgdkcgnkdljeagconfbfeolidj
1•nongquy•8m ago•0 comments

U.S. at Fault in Strike on School in Iran, Preliminary Inquiry Says

https://www.nytimes.com/2026/03/11/us/politics/iran-school-missile-strike.html
9•jbegley•11m ago•2 comments

Functional Universe – Physics as Composable Functional Transitions

https://voxleone.github.io/FunctionalUniverse/index.html
1•voxleone•11m ago•0 comments

Diffusion LLM may make most of the AI engineering stack obsolete

2•victorpiles99•12m ago•0 comments

When Your Life's Work Becomes Free and Abundant

https://x.com/adityaag/article/2031396465063436395
1•vednig•13m ago•0 comments

Inline MCP results are the new prompt bloat

https://futuresearch.ai/blog/mcp-results-widget/
6•rafaelpo•13m ago•1 comments

Wiz Joins Google

https://www.wiz.io/blog/google-closes-deal-to-acquire-wiz
5•aldarisbm•13m ago•0 comments

I made a tool that scores your startup, app or business "objectively"

https://stacksleuth.vercel.app
1•aether-dev•14m ago•1 comments

Notes from Token Town: Negotiating for the Fortune 5M

https://twitter.com/sarahmsachs/status/2031473087791902991
1•sundaypancakes•14m ago•0 comments

New Programming Languages Have an AI Problem

https://edgl.dev/blog/ai-language-adoption/
2•edg-l•15m ago•1 comments

The first AI Operating System for serious professionals

https://www.sooko.ai/
1•Femiaguda•15m ago•1 comments

Legend of Zelda: Ocarina of Time on the Apple Watch [video]

https://www.youtube.com/watch?v=1DR0ESBEC8s
1•zdw•16m ago•0 comments

HTTPS certificates in the age of quantum computing

https://lwn.net/SubscriberLink/1060941/af07898a15c68291/
1•askl•17m ago•0 comments

The Upfront Investment That Saves 10k Hours

https://eric.mann.blog/the-upfront-investment-that-saves-10000-hours/
1•eamann•17m ago•0 comments

DNSSEC NTAs: No Good Compromises

https://quad9.net/news/blog/dnssec-ntas-no-good-compromises/
2•Velocifyer•17m ago•0 comments

Answering Machine Messages from "Weird Al" Yankovic

http://www.noveltyansweringmachine.com/video/weirdal.html
1•TigerUniversity•17m ago•0 comments

Code Quality in the Age of Coding Agents

https://michaeltimbs.me/blog/code-quality-in-the-age-of-coding-agents/
2•mmorris•17m ago•1 comments