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

Humanoid Robots Celebrate Spring, Your weekly selection of robot videos

https://spectrum.ieee.org/robot-martial-arts
1•oldnetguy•1m ago•0 comments

Show HN: A Bloomberg-style terminal for healthcare

https://nofone.io/terminal
1•ahmedhawas123•1m ago•0 comments

The human heart is a Turing Machine

https://threadreaderapp.com/thread/2026013870498922612.html
1•LorenDB•2m ago•0 comments

Proof demo: court ready crypto forensic report with hash verification

https://quantumassetengine.com
1•QAEinfra•5m ago•1 comments

AI helps break the cost barrier to COBOL modernization

https://claude.com/blog/how-ai-helps-break-cost-barrier-cobol-modernization
2•mfiguiere•5m ago•1 comments

Verifpal, Rewritten in Rust

https://symbolic.software/blog/2026-02-23-verifpal-rust/
1•todsacerdoti•6m ago•0 comments

Token Anxiety

https://twitter.com/i/status/2022438070092759281
1•endorphine•6m ago•0 comments

Show HN: Autonomous loop driver and multi-model council for Claude Code

https://github.com/intellegix/intellegix-code-agent-toolkit
1•intellegix•6m ago•0 comments

Ask HN: How do you know if AI agents will choose your tool?

1•dmpyatyi•8m ago•2 comments

MediaFM: The Multimodal AI Foundation for Media Understanding at Netflix

https://netflixtechblog.com/mediafm-the-multimodal-ai-foundation-for-media-understanding-at-netfl...
1•CharlesW•9m ago•0 comments

I built a tool that forces teams to cut priorities instead of ranking them

https://www.cognu.app/less-is-more
1•anticlickwise•9m ago•1 comments

Hominem Te Esse Memento: Mortality and Ambition in AI

https://ben.bolte.cc/posts/2026-02-15-regret
1•ENadyr•9m ago•0 comments

My dad died at 56 and never made it to retirement. The 3 lessons he taught me

https://www.businessinsider.com/dad-dying-before-he-could-retire-lessons-changed-retirement-plans...
3•kiriberty•10m ago•0 comments

Study reveals whistling secret of horses' whinny

https://www.theguardian.com/world/2026/feb/23/horses-whinny-neigh-whistle
1•kiriberty•12m ago•0 comments

Early Access to a todo app that syncs to Notion

1•luis_journey•12m ago•0 comments

Show HN: 17MB pronunciation scorer beats human experts at phoneme accuracy

https://huggingface.co/spaces/fabiosuizu/pronunciation-assessment
1•fabiosuizu•13m ago•0 comments

OpenFeeder – LLM-native web content API (better accuracy, 20x less data)

https://github.com/jcviau81/openfeeder
1•jcviau•14m ago•1 comments

Would you use a tool that turns any URL into a visual UX flow map?

https://www.benchcanvas.app/
1•davidmartinsu•14m ago•1 comments

Mine. Mine. Mine. How One Corrupt Billionaire Kicked Off the Global Cobalt Spree

https://www.vanityfair.com/news/story/dan-gertler-cobalt
1•randycupertino•14m ago•2 comments

India's VIP culture is out of control

https://www.economist.com/asia/2026/02/22/indias-vip-culture-is-out-of-control
3•vinni2•15m ago•0 comments

Cloudflare non existent Trust and Safety

1•rtsam•15m ago•0 comments

Binance Fired Employees Who Found $1.7B in Crypto Was Sent to Iran

https://www.nytimes.com/2026/02/23/technology/binance-employees-iran-firings.html
21•boplicity•16m ago•10 comments

Women's heart attack risk rises even if arteries aren't as clogged as men's

https://www.statnews.com/2026/02/23/heart-disease-in-women-plaque-scan-risk/
3•brandonb•16m ago•1 comments

BC Hydro call for AI, data-centre projects – Limited capacity

https://news.gov.bc.ca/releases/2026ECS0005-000095
2•SteveVeilStream•17m ago•1 comments

What I've learned to recognize as a designer and technologist thanks to sci-fi

https://www.chrbutler.com/in-but-not-of
3•delaugust•19m ago•1 comments

Fighting Cognitive Debt in Agentic Code with Video Overviews

https://enigmeta.com/posts/2026-02-19-video-overviews-for-agentic-code/
1•fdb•20m ago•0 comments

Diversifying lithium-rich mineral sources with petalite

https://www.csiro.au/en/news/All/Articles/2026/February/Petalite
1•PaulHoule•22m ago•0 comments

Were the Egyptian Pyramids Not Built Up, but Carved Down?

https://www.openculture.com/2026/02/were-the-egyptian-pyramids-not-built-up-but-carved-down.html
2•_kidlike•22m ago•0 comments

Show HN: Dare v2 – A token-efficient, AI-native language for PDF generation

https://dare.pages.dev/
1•hassan-elkady•24m ago•1 comments

Deplatform Yourself

https://pluralistic.net/2026/02/23/goodharts-lawbreaker/#no-metrics-no-targets
6•leephillips•25m ago•0 comments