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•7mo 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

Interview Coder Just Leaked Full Names and Companies of All SWEs Who Cheated [video]

https://www.youtube.com/watch?v=8T1vW85xFiQ
1•mickle00•3m ago•0 comments

Bill Ackman Funds ICE Agent GoFundMe Run by Nazi Imagery Poster

https://theintercept.com/2026/01/12/ice-gofundme-bill-ackman-jonathan-ross/
4•cdrnsf•4m ago•1 comments

Micro SD Card Extender – 68cm (26 inch) long flex cable

https://www.adafruit.com/product/3688
2•striking•6m ago•0 comments

XMPP Integration with N8n – ProcessOne

https://www.process-one.net/blog/xmpp-integration-with-n8n/
1•neustradamus•7m ago•0 comments

Clipboard Images in Claude Code CLI

https://www.woodcp.com/2026/01/clipboard-images-in-claude-code-cli/
1•tawman•8m ago•1 comments

Whatever happened to Trump Mobile's promise of a golden phone?

https://www.pbs.org/newshour/economy/whatever-happened-to-trump-mobiles-promise-of-a-golden-phone
4•type0•11m ago•0 comments

RVAA: Recursive Vision-Action Agent for Long Video Understanding

https://github.com/mohammed840/RLM-implementation
1•tmzt•13m ago•0 comments

AI's Memorization Crisis

https://www.theatlantic.com/technology/2026/01/ai-memorization-research/685552/
1•twalichiewicz•13m ago•2 comments

Show HN: I built a 220-lesson programming academy using only Claude Code

https://academy.thunderson.dev
1•eyrockscript•19m ago•0 comments

Show HN: Nudge – Enforcing guardrails for coding agents

https://github.com/attunehq/nudge
3•ilikebits•21m ago•0 comments

OpenAI has acquired the health-care technology startup Torch

https://www.cnbc.com/2026/01/12/open-ai-torch-health-care-technology.html
1•shelfchair•24m ago•0 comments

Google removes AI health summaries after investigation finds dangerous flaws

https://arstechnica.com/ai/2026/01/google-removes-some-ai-health-summaries-after-investigation-fi...
4•barishnamazov•25m ago•0 comments

Non-Essential French Embassy Staff Have Left Iran

https://www.barrons.com/news/non-essential-french-embassy-staff-have-left-iran-sources-d84d1f51
13•mhb•27m ago•0 comments

A deep dive on agent sandboxes

https://pierce.dev/notes/a-deep-dive-on-agent-sandboxes
1•icyfox•27m ago•0 comments

Republican introduces bill seeking to make Greenland 51st state

https://thehill.com/homenews/house/5685118-fine-introduces-greenland-bill/
5•zqna•33m ago•4 comments

The "Bermuda Triangle" and the Growing Risk in the Insurance Markets

https://natlawreview.com/article/bermuda-triangle-and-growing-risk-insurance-markets
1•petethomas•36m ago•0 comments

GoFundMe Ignores Rules Hosting Legal Fund for ICE Agent Who Killed Renee Good

https://www.wired.com/story/gofundme-ice-jonathan-ross-renee-good-fundraiser/
8•cdrnsf•37m ago•4 comments

Map Your API Landscape to Prevent Agentic AI Disaster

https://thenewstack.io/map-your-api-landscape-to-prevent-agentic-ai-disaster/
2•chhum•39m ago•0 comments

GitHub not showing that apps "act on your behalf" when only logging in

https://github.blog/changelog/2026-01-12-selectively-showing-act-on-your-behalf-warning-for-githu...
4•gregsadetsky•40m ago•0 comments

YAML? That's Norway Problem

https://lab174.com/blog/202601-yaml-norway/
2•thes1lv3r•40m ago•0 comments

China Just Built Its Own Time System for the Moon

https://gizmodo.com/china-just-built-its-own-time-system-for-the-moon-2000708991
1•hunglee2•41m ago•0 comments

Mars's big impact on Earth's climate: How the red planet's pull shapes ice ages

https://phys.org/news/2026-01-tiny-mars-big-impact-earth.html
1•bikenaga•43m ago•1 comments

Ask HN: Speculate About a Hypothetical Cyber Exploit That Would Leverage AI

2•burnerToBetOut•44m ago•1 comments

Data-Dividend Calculator

https://delightful-maamoul-98e039.netlify.app
1•KillswitchAI•44m ago•0 comments

I built an ingestion engine because I hate mundane tasks

2•scannyai•45m ago•0 comments

Dialectics for Artificial Intelligence

https://arxiv.org/abs/2512.17373
1•xiaoniu•45m ago•0 comments

Even Linus Torvalds is vibe coding now

https://www.zdnet.com/article/linus-torvalds-vibe-coding-ai/
1•CrankyBear•45m ago•1 comments

Do you know how much money social apps make from your time

https://www.urtheproduct.com
4•ClipNoteBook•47m ago•2 comments

Danish dev delights kid by turning floppy drive into easy TV remote

https://www.theregister.com/2026/01/12/danish_dev_floppy_drive_remote/
1•defrost•48m ago•2 comments

Transactional AI: Saga Pattern for Reliable AI Agent Workflows (v0.2)

https://github.com/Grafikui/Transactional-ai
2•grafikui•48m ago•1 comments