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

Pentagon warns Scouts to restore 'core values' or lose military support

https://www.washingtonpost.com/national-security/2026/02/03/hegseth-boy-scouts-scouting-america/
1•reaperducer•40s ago•0 comments

Kevin Warsh

https://stayathomemacro.substack.com/p/kevin-warsh
2•petethomas•3m ago•0 comments

Apple's Xcode Now Supports the Claude Agent SDK

https://www.anthropic.com/news/apple-xcode-claude-agent-sdk
1•afrnswrth•4m ago•0 comments

The Fallen Apple

https://mattgemmell.scot/the-fallen-apple/
1•cdrnsf•6m ago•0 comments

My six-year-old loves heavy metal

https://dogdogfish.com/blog/2026/02/03/heavy-metal-boy/
1•matthewsharpe3•6m ago•0 comments

Show HN: ContextPin – local-first context manager for AI coding workflows

https://contextpin.com/blog/introducing-contextpin/
1•strandnerd•6m ago•0 comments

AI powered by what you've seen said or heard

https://screenpi.pe
2•arafatk•7m ago•0 comments

Baby Sauropods Were the Potato Chips of the Jurassic Era

https://nautil.us/baby-sauropods-were-the-potato-chips-of-the-jurassic-era-1265298/
1•speckx•7m ago•0 comments

Genesis

https://zenodo.org/records/18472020
3•Anonymus12233•8m ago•0 comments

My Teletext Website

https://pakastin.fi
2•pkstn•9m ago•1 comments

Draft quantum order tasks agencies with reinvigorating the tech's development

https://www.nextgov.com/emerging-tech/2026/02/draft-quantum-order-tasks-many-agencies-reinvigorat...
2•petethomas•9m ago•0 comments

Show HN: A Directory for European Tech Stack Alternatives

https://www.stackeuropa.com/
1•Collusus96•10m ago•0 comments

Mary, Mother of Mercy

https://lifeofanunorsister.blogspot.com/2016/08/mary-mother-of-mercy.html
1•marysminefnuf•10m ago•0 comments

Qwen3-Coder-Next: How to Run Locally

https://unsloth.ai/docs/models/qwen3-coder-next
2•simonpure•11m ago•0 comments

Show HN: ClawdHost – Managed OpenClaw Hosting

https://clawdhost.net
1•shraey96•11m ago•0 comments

Game of Thrones Didn't Fall Off in Later Seasons

1•JohnSnowDoesDie•11m ago•3 comments

From 'nerdy' Gemini to 'edgy' Grok: how developers are shaping AI behaviours

https://www.theguardian.com/technology/2026/feb/03/gemini-grok-chatgpt-claude-qwen-ai-chatbots-id...
3•devonnull•11m ago•0 comments

Changes to .SWOOSH

https://blog.swoosh.nike/changes-to-swoosh-9444414a420f
1•ChrisArchitect•11m ago•0 comments

Likes, Loops, and Limbic Systems: The Neurological Impact of Social Media

https://medium.com/neurotechx/likes-loops-and-limbic-systems-unveiling-the-neurological-impact-of...
2•rzk•11m ago•0 comments

Show HN: Add This to Calendar – Built with Claude as a non-technical maker

https://chromewebstore.google.com/detail/add-this-to-calendar/jbceogdnbbhhhjeglpllfbdpcccfhkkd
1•michikoj•11m ago•0 comments

Why Social Media Is So Addictive – The Science Behind Dopamine and Reward

https://medium.com/cognitive-neuroeconomics/why-social-media-is-so-addictive-the-science-behind-d...
3•rzk•12m ago•0 comments

Xcode 26.3 unlocks the power of agentic coding

https://www.apple.com/newsroom/2026/02/xcode-26-point-3-unlocks-the-power-of-agentic-coding/
17•davidbarker•13m ago•8 comments

Show HN: MCP server for generating Mermaid diagrams with live browser preview

https://github.com/iishyfishyy/mermaid-live-mcp
1•ishyfishyy•14m ago•0 comments

British Museum's A.I.-generated post sparks online backlash

https://news.artnet.com/art-world/british-museum-ai-backlash-2742244
1•FeteCommuniste•14m ago•0 comments

Is your social life missing something? This is for you [audio]

https://podcasts.apple.com/us/podcast/is-your-social-life-missing-something-this-is-for-you/id154...
2•nkzednan•15m ago•1 comments

My Eighth Year as a Bootstrapped Founder

https://mtlynch.io/bootstrapped-founder-year-8/
1•mtlynch•15m ago•0 comments

Security startup Cyera hits $9B valuation six months after being valued at $6B

https://techcrunch.com/2026/01/08/data-security-startup-cyera-hits-9b-valuation-six-months-after-...
1•PaulHoule•15m ago•0 comments

Deno Deploy Is Generally Available

https://deno.com/blog/deno-deploy-is-ga
2•frou_dh•16m ago•0 comments

Show HN: I gave 11 LLMs my trading strategy to see which one profits

https://daytradingbench.com
1•porttipasi•17m ago•2 comments

Tech-Free January

https://fivetwelvethirteen.substack.com/p/tech-free-january
1•yorwba•17m ago•0 comments