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

NoEyes – Terminal-based, self-hosted end-to-end encrypted chat in Python

https://github.com/Ymsniper/NoEyes
1•Ymsniper•15s ago•1 comments

Show HN: Agent-Audit – Lint and cost-estimate your AI agent

https://github.com/AreteDriver/agent-audit
1•aretedriver•2m ago•0 comments

The growing corpus of problems that are 'easy' for entities which may not think

https://zjpea.substack.com/p/embarrassingly-solved-problems
1•zjp•4m ago•0 comments

Show HN: I built a fast mood, energy, and activity tracker (trilog.app)

https://trilog.app
1•saltroad•5m ago•0 comments

Claude hits #1 on the App Store as users rally behind Anthropic

https://9to5mac.com/2026/03/01/claude-hits-1-on-the-app-store-as-users-rally-behind-anthropics-go...
3•doctoboggan•7m ago•0 comments

Earn Compute Credits

https://www.hpc-ai.com/blog/Share-And-Earn-Social-Media-Campaign
1•hpcaitech•9m ago•0 comments

Secure LLM Scripting. Finally

https://mlld.ai/
1•dahjelle•13m ago•0 comments

RunWatch – CI/CD Observability for GitHub and GitLab

https://runwatch.io
1•toconnor•13m ago•1 comments

We will sacrifice quality for convenience

https://twitter.com/backnotprop/status/2028293637373841759
4•ramoz•13m ago•0 comments

Readout

https://www.readout.org/
1•handfuloflight•14m ago•0 comments

Dual chamber microbial fuel cells using human urine

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

The Metamorphosis of Prime Intellect (1994)

https://localroger.com/prime-intellect/mopiidx.html
1•nz•18m ago•0 comments

There Are Many Ways to Read Hacker News

https://readhacker.news/
1•TigerUniversity•19m ago•0 comments

Show HN: Anime AI Agent for end-to-end anime short creation

https://www.animeaistudio.com/anime-ai-agent
1•deepseekai•20m ago•2 comments

The Crossing Guard Making $14,000 a Month Mailing Out Her Musings from the Job

https://www.wsj.com/lifestyle/careers/crossing-guard-mail-club-14-000-a-month-42afb85d
1•impish9208•21m ago•1 comments

Read Michel de Montaigne's Essays in Modern English

https://magicreader.com/montaigne
1•mzelling•30m ago•0 comments

Block and Tackle: Job Cuts and the AI Narrative

https://om.co/2026/02/28/block-tackle-job-cuts-the-ai-narrative/
1•qwikhost•32m ago•1 comments

Smallest QR Code Is So Tiny It's Invisible to the Human Eye

https://www.sciencealert.com/worlds-smallest-qr-code-is-so-tiny-its-invisible-to-the-human-eye
1•rendx•33m ago•0 comments

Show HN: Foundations Chat, macOS AI chat built on Apple's local models

https://codeeverywhereca.github.io/foundations-chat/
1•coevcan•35m ago•0 comments

A curious phenomenon called 'Etak' (2024)

https://maphappenings.com/2024/04/11/story-of-etak/
1•giancarlostoro•37m ago•0 comments

The limited utility of the phrase "GNU/Linux" (2022)

https://seirdy.one/posts/2022/12/09/limited-utility-gnu-linux/
1•LorenDB•38m ago•0 comments

Show HN: Sun – Realtime voice agent for group conservation not just turn taking

https://www.getsun.io/
3•anand_pattern•39m ago•2 comments

A semantic Code Search CLI but with grep filters

https://github.com/lightonai/next-plaid
1•raphaelty•44m ago•1 comments

Swarming, spinning microrobots can manipulate their surroundings

https://news.cornell.edu/stories/2026/02/swarming-spinning-microrobots-can-manipulate-their-surro...
1•geox•52m ago•0 comments

I'm Sorry This New Artist Sucks [video]

https://www.youtube.com/watch?v=eKxNGFjyRv0
1•thunderbong•55m ago•0 comments

Opponent Modeling Wins 2× Faster Than Stockfish

https://blog.lukesalamone.com/posts/winning-faster-than-stockfish/
1•salamo•56m ago•0 comments

Personal token: share equity in your lifetime upside

https://github.com/homan9/personal-token/blob/main/whitepaper.md
1•koopuluri•1h ago•0 comments

Future of Devtools and Moats

https://ravivyas.com/2026/03/01/dev-tools-and-moats
2•ravivyas•1h ago•1 comments

Piezoelectric gel to regenerate lost bone (e.g. periodontitis)

https://oralbiolife.com/
2•camebeforeagain•1h ago•1 comments

Show HN: Orcv: If tmux was built for window management on macOS in 2026

https://github.com/jasonjmcghee/orcv
1•jasonjmcghee•1h ago•1 comments