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

Apple Creator Studio

https://www.apple.com/apple-creator-studio/
1•aenean•10m 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•12m 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...
1•teleforce•15m ago•0 comments

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

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

Building Threat Models with MCP and AI Agents

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

AI will compromise your cybersecurity posture

https://rys.io/en/181.html
4•gmays•37m ago•1 comments

Tea App Checker

https://teaappchecker.com
2•thefirstname•39m 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•40m ago•0 comments

Dylan Araps has taken up farming

https://dylan.gr/1768295794
2•planet36•42m 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
6•petethomas•44m ago•1 comments

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

https://www.gpui.rs/
3•doodlesdev•46m ago•0 comments

tmux for Agents (2025)

https://blog.philz.dev/blog/tmux-for-agents/
1•indigodaddy•46m ago•0 comments

Town Budget Explainer Site

https://middlesexbudget.org/
2•mrkiouak•47m ago•1 comments

Wanting to be an astronaut turned me into a Software Engineer

https://blog.douwe.com/2026/01/wanting-to-be-astronaut-turned-me-into.html
2•dosinga•49m ago•0 comments

Microneedle-Array ECG with PPG Sensor for Cuffless Blood Pressure Estimation

https://www.mdpi.com/2076-3417/16/1/35
1•PaulHoule•49m ago•1 comments

Mago

https://mago.carthage.software/
1•josephscott•51m ago•0 comments

Space Telescope Live

https://spacetelescopelive.org/
3•arbuge•52m ago•1 comments

Show HN: Open-source welcome email automation: Supabase + Gmail + Seer

https://www.youtube.com/watch?v=Q1wPRnTGf0w
1•akshay326•54m ago•0 comments

How did India conquer space

https://altermag.com/articles/how-did-india-conquer-space
1•trojanalert•56m ago•0 comments

Amazon holds talks with suppliers on pricing following tariff changes

https://www.reuters.com/business/retail-consumer/amazon-pushes-suppliers-cuts-ahead-supreme-court...
2•petethomas•56m ago•0 comments

Kutt.ai – Free AI Video Generator, Text and Image to Video

https://kutt.ai/
1•zuoning•57m ago•1 comments

Meta cutting ~1500 VR/AR positions to focus on AI

https://gizmodo.com/meta-reportedly-cutting-about-1500-vr-and-ar-jobs-amid-renewed-push-to-become...
3•bhouston•1h ago•3 comments

Unsung US civil rights pioneer Claudette Colvin dies, aged 86

https://www.aljazeera.com/news/2026/1/14/unsung-us-civil-rights-pioneer-claudette-colvin-dies-age...
5•Qem•1h ago•0 comments

1000 Blank White Cards

https://en.wikipedia.org/wiki/1000_Blank_White_Cards
2•eieio•1h ago•0 comments

Wine 11.0

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0
2•zdw•1h ago•0 comments

Show HN: Overengineered recommender (activity/game/series/etc.) (57 knobs)

https://activity-architect-1.web.app/
1•arthurstarlake•1h ago•0 comments

Fresh starts: how to thrive when you leave academia

https://www.nature.com/articles/d41586-026-00085-y
4•bookofjoe•1h ago•0 comments

Vintagemapstore: Outline of the world by mapping all lighthouses

https://twitter.com/vintagemapstore/status/2011247533172150512
2•johntfella•1h ago•0 comments

GitHub should charge everyone $1 more per month

https://blog.greg.technology/2025/11/27/github-should-charge-1-dollar-more-per-month.html
1•gregsadetsky•1h ago•2 comments

Death by AI Gibberish

https://elocination.substack.com/p/death-by-ai-gibberish
3•mellosouls•1h ago•0 comments