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

We Got Hooked on Fast, Free Shipping. Now Retailers Are Taking It Away

https://www.wsj.com/business/retail/fast-free-shipping-retailers-fedex-ups-amazon-e6ba5967
1•thm•58s ago•0 comments

Comprehensive Vim Motions in Visual Studio

https://developercommunity.visualstudio.com/t/Comprehensive-Vim-Motions/11051331
1•deronparker•2m ago•0 comments

EnterpriseBench: CoreCraft – Measuring AI Agents in Chaotic RL Environments

https://surgehq.ai/blog/enterprisebench-corecraft
1•Olshansky•2m ago•0 comments

Vercel deployments were created without Middleware

https://www.vercel-status.com/incidents/963t8qqbk77b
1•hubraumhugo•2m ago•1 comments

New Research Reassesses the Value of Agents.md Files for AI Coding

https://www.infoq.com/news/2026/03/agents-context-file-value-review/
1•realaleris149•3m ago•0 comments

xAI loses bid to halt California AI data disclosure law

https://www.reuters.com/legal/government/xai-loses-bid-halt-california-ai-data-disclosure-law-202...
2•consumer451•7m ago•0 comments

Citizen Science: Map the Earth's Magnetic Shield with the Space Umbrella Project

https://phys.org/news/2026-02-citizen-science-earth-magnetic-shield.html
1•PaulHoule•8m ago•0 comments

Show HN: Pouch – a session-first GNU Screen manager with a focused terminal UI

https://github.com/zpdldhkdl/pouch
1•zpdldhkdl•12m ago•0 comments

Show HN: glide – LLM cascade proxy, auto-switches models before timeout

https://github.com/phanisaimunipalli/glide
1•phanisaimuni116•12m ago•1 comments

Your AI Slop Bores Me

https://www.youraislopbores.me/
2•maurycyz•13m ago•0 comments

Sarvam 105B, the first competitive Indian open source LLM

https://www.sarvam.ai/blogs/sarvam-30b-105b
1•logicchains•15m ago•0 comments

Not Prompts, Blueprints

https://tomtunguz.com/filling-the-queue-for-ai/
2•vinhnx•25m ago•0 comments

The Joy of Building Slow

https://notbor.ing/words/the-joy-of-building-slow
1•vinhnx•25m ago•0 comments

German police probe student poster slur against Merz

https://dpa-international.com/politics/urn:newsml:dpa.com:20090101:260306-99-743434/
28•roflcopter69•27m ago•18 comments

Free Images and Open Access

https://www.nga.gov/artworks/free-images-and-open-access
1•vinhnx•28m ago•0 comments

RVA23 Ends Speculation's Monopoly in RISC-V CPUs

https://semiwiki.com/ip/risc-v/367094-rva23-ends-speculations-monopoly-in-risc-v-cpus/
1•enz•28m ago•0 comments

I juggle embedded projects (2021)

https://jaycarlson.net/2021/09/18/juggle-embedded-projects-home-office-workspace-tour/
1•lawik•32m ago•0 comments

Empty Should Be Empty

https://donraab.medium.com/empty-should-be-empty-c09e21edc205
2•ingve•32m ago•0 comments

Way to Use AI for Coding

3•deep1283•35m ago•0 comments

AI Agents Are Recruiting Humans to Observe the Offline World

https://www.noemamag.com/ai-agents-are-recruiting-humans-to-observe-the-offline-world/
2•bryanrasmussen•40m ago•2 comments

Show HN: ImmutableBase – Strict immutable data objects for PHP

https://github.com/ReallifeKip/ImmutableBase
1•bill402099•45m ago•0 comments

Show HN: Clickly – visual dev tool for mobile apps with real-time preview

https://clickly.app
2•roskoalexey•48m ago•0 comments

The Window Chrome of Our Discontent

https://pxlnv.com/blog/window-chrome-of-our-discontent/
1•tosh•1h ago•0 comments

"I built a spell checker for back end configuration mistakes."

https://www.npmjs.com/package/safelaunch
1•karthicedricq•1h ago•1 comments

ClaudeSmalltalk: An MCP implementation to interact with Smalltalk images

https://github.com/CorporateSmalltalkConsultingLtd/ClaudeSmalltalk
4•mpweiher•1h ago•0 comments

Show HN: Mb-CLI – CLI for Metabase. Designed for humans and AI coding agents

https://github.com/andreagrandi/mb-cli
2•andreagrandi•1h ago•0 comments

Show HN: Viral.ad – Turn any product URL into a UGC video ad in minutes

https://www.viral.ad/
2•cjdesignstudio•1h ago•1 comments

Show HN: I built a tool to manage work and personal Git repos

https://github.com/tomquirk/gitpersona
6•tomquirk•1h ago•1 comments

Show HN: Stopping OpenClaw from breaking your mails

https://github.com/HalfEmptyDrum/openclaw-gmail-draft-proxy
4•HalfEmptyDrum•1h ago•0 comments

Girl Scout Cookies

https://www.girlscouts.org/en/cookies.html
3•Tomte•1h ago•1 comments