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

Uber Airport Demand Forecasting

https://www.uber.com/blog/forecasting-models-to-improve-availability-at-airports/
1•brettcvz•3m ago•0 comments

China's Hottest New App Is 'Are You Dead Yet'

https://www.wired.com/story/china-are-you-dead-yet-app/
1•Kholin•4m ago•0 comments

Why India's plan to make AI companies pay for training data should go global

https://restofworld.org/2026/india-ai-data-license-fee/
2•Brajeshwar•9m ago•0 comments

Google please stop blocking my parody website

https://ivanca.github.io/censorship/2026/01/13/google-stop-blocking-my-parody-website/
1•AmbroseBierce•16m ago•0 comments

FateTell – Chinese I Ching and BaZi AI with physics-based interaction

https://fatetell.com/
2•Farigh4•16m ago•1 comments

Artificial StupidIntelligence and Airport Sinks

https://www.deobald.ca/essays/2026-01-13-artificial-stupidintelligence-and-airport-sinks/
1•deobald•17m ago•0 comments

The Jock Programming Language

https://jock.org
2•Antibabelic•18m ago•0 comments

Leash by StrongDM

https://leash.strongdm.ai/
1•handfuloflight•21m ago•0 comments

GLM-Image: High-Fidelity Image Generation

https://glmimage.com
1•sarkory•25m ago•1 comments

Why do so many students have ADHD?

https://unherd.com/2026/01/why-do-so-many-students-have-adhd/
2•jnord•28m ago•0 comments

Show HN: Soulcaster – Cluster feedback, spin up an agent to fix it

https://www.soulcaster.dev/
1•codecracker3001•34m ago•0 comments

What Will Work (and Won't) in SaaS in 2026:- Lessons from Building 100 Tools

https://digiwares.xyz/blog/saas-2026-predictions
3•digi_wares•39m ago•1 comments

Locksport Network Directory

https://locksport.net/
2•memoriesofsmell•39m ago•1 comments

Warmer climate, spicier food. But which country is the spiciest?

https://bigthink.com/strange-maps/temperature-spiciness-spectrum/
2•thunderbong•41m ago•0 comments

My Conversation with Stacey Abrams

https://snyder.substack.com/p/live-with-professor-timothy-snyder
1•hkhn•43m ago•0 comments

Democracy Is Under Attack

https://10stepscampaign.org/
13•hkhn•44m ago•0 comments

China may crack down on "Singapore-washed" tech companies

https://www.axios.com/2026/01/13/china-meta-manus-singapore
2•doppp•45m ago•0 comments

Ancient Rome meets modern technology

https://apnews.com/article/italy-palatine-hill-livestream-tours-emperor-frescoes-e63327f43424e125...
1•frm88•47m ago•1 comments

New Physics Paper: Resolving the Hubble Tension [pdf]

https://github.com/localtimeacceleration/LTA/blob/main/lta_paper.pdf
1•localtimeaccel•49m ago•1 comments

Apple Creator Studio

https://www.apple.com/apple-creator-studio/
1•aenean•1h ago•1 comments

Experiments with Kafka's head-of-line blocking (2023)

https://www.artur-rodrigues.com/tech/2023/03/21/kafka-head-of-line-blocking.html
1•teleforce•1h ago•0 comments

Side Stepping Head of Line Blocking in Kafka Consumers (2025)

https://medium.com/@michael.diggin/side-stepping-head-of-line-blocking-in-kafka-consumers-6e7cbe4...
2•teleforce•1h ago•0 comments

GLM-Image Auto-Regressive for Dense-Knowledge and High-Fidelity Image Generation

https://z.ai/blog/glm-image
3•ledak•1h ago•0 comments

Building Threat Models with MCP and AI Agents

https://www.detectionatscale.com/p/threat-modeling-ai-agents-mcp
2•gmays•1h ago•0 comments

AI will compromise your cybersecurity posture

https://rys.io/en/181.html
8•gmays•1h ago•1 comments

Tea App Checker

https://teaappchecker.com
2•thefirstname•1h ago•1 comments

Show HN: Why Apple's Security Transparency Is a Double-Edged Sword for iOS 18.5

https://medium.com/@ryu360i/cves-as-feature-catalogs-the-terrifying-reality-of-automated-version-...
2•ryuzaburo•1h ago•0 comments

Dylan Araps has taken up farming

https://dylan.gr/1768295794
3•planet36•1h ago•1 comments

Matthew McConaughey Trademarks Himself to Fight AI Misuse

https://www.wsj.com/tech/ai/matthew-mcconaughey-trademarks-himself-to-fight-ai-misuse-8ffe76a9
8•petethomas•1h ago•2 comments

gpui – A fast, productive UI framework for Rust from the creators of Zed

https://www.gpui.rs/
4•doodlesdev•1h ago•0 comments