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•4mo 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•4mo 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•4mo 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•3mo 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•4mo 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•4mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Pnpm has a new setting to stave off supply chain attacks

https://pnpm.io/blog/releases/10.16
1•ivanb•34s ago•0 comments

Is there demand for a managed web automation and monitoring service?

1•TheOneEye•2m ago•0 comments

9 Years Solo: Building Complex AI Competition in a Game Management SIM

1•binogure•2m ago•0 comments

Redux in 2025: A reliable choice for complex React projects

https://stefvanwijchen.com/react-and-redux-in-2025/
1•nnx•3m ago•0 comments

Google DeepMind claims 'historic' AI breakthrough in problem solving

https://www.theguardian.com/technology/2025/sep/17/google-deepmind-claims-historic-ai-breakthroug...
1•fergie•6m ago•0 comments

Is viewpoint based flagging suppressing critical replies on this post?

https://news.ycombinator.com/item?id=45282482
1•shadowbanning•9m ago•1 comments

Dyson spheres are a joke [video]

https://www.youtube.com/watch?v=fLzEX1TPBFM
1•ilitirit•11m ago•0 comments

History of the Gem Desktop Environment

https://nemanjatrifunovic.substack.com/p/history-of-the-gem-desktop-environment
1•ibobev•18m ago•0 comments

CERN Animal Shelter for Computer Mice

https://computer-animal-shelter.web.cern.ch/index.shtml
2•EbNar•20m ago•1 comments

Virginia Class Submarines [video]

https://www.youtube.com/watch?v=6xyYzocJi1c
1•CHB0403085482•23m ago•0 comments

Gemini achieves gold-medal level at the Programming Contest World Finals

https://deepmind.google/discover/blog/gemini-achieves-gold-level-performance-at-the-international...
1•doener•26m ago•0 comments

Getting ArXiv Sanity Papers via RSS (2022)

https://den.dev/blog/arxiv-sanity-rss-feeds/
1•alastairr•28m ago•0 comments

Gluco data handler: Receive and visualize glucose data on Android

https://github.com/pachi81/GlucoDataHandler
2•croemer•29m ago•1 comments

Viewport behavior in Safari 26 is utterly broken

https://bsky.app/profile/bram.us/post/3lyvpzesevs2u
1•rasso•32m ago•0 comments

Jobs Massacre in Germany

https://www.wsws.org/en/articles/2025/09/15/2d6e-s15.html
3•Michelangelo11•36m ago•0 comments

Tesla Is Dropping the Dream of Human-Free Self-Driving Cars

https://www.vice.com/en/article/tesla-is-dropping-the-dream-of-human-free-self-driving-cars/
2•agnosticmantis•39m ago•0 comments

How to use AI without becoming stupid

https://commoncog.com/how-to-use-ai-without-becoming-stupid/
4•bobbiechen•46m ago•0 comments

China trials its first advanced tools for AI chipmaking

https://www.ft.com/content/8fd79522-e34f-4633-bc87-ef0aae2d9159
1•Iny0ka•50m ago•0 comments

Offline MDN Documentation Downloads

https://kapeli.com/mdn_offline
2•burgerrito•51m ago•1 comments

macOS 26 new Launchpad sucks, I replaced it

https://www.launchie.app
1•nickfthedev•51m ago•1 comments

What Is Man, That Thou Art Mindful of Him?

https://www.astralcodexten.com/p/what-is-man-that-thou-art-mindful
1•sothatsit•53m ago•1 comments

Show HN: AgentKube: AI-Powered Kubernetes IDE

https://agentkube.com/
2•saiyampathak•54m ago•1 comments

Apple to Fix Camera Glitch Affecting iPhone Air and iPhone 17 Pro

https://www.macrumors.com/2025/09/17/apple-iphone-17-camera-glitch-fix/
1•noja•55m ago•1 comments

Meta – first Ray-Ban smart glasses with in-built augmented reality display

https://www.theguardian.com/technology/2025/sep/17/meta-ray-ban-smart-glasses
2•beardyw•56m ago•1 comments

Faster, more memory-efficient performance in Grafana Mimir

https://grafana.com/blog/2025/09/17/faster-more-memory-efficient-performance-in-grafana-mimir-a-c...
1•meysamazad•56m ago•0 comments

Tap Code

https://en.wikipedia.org/wiki/Tap_code
1•Timothee•57m ago•1 comments

Syria: Israel Forcibly Displaces Villagers in Occupied South

https://www.hrw.org/news/2025/09/17/syria-israel-forcibly-displaces-villagers-in-occupied-south
7•hggh•59m ago•0 comments

Introducing Space Grade Linux

https://lwn.net/Articles/1036168/
2•pykello•1h ago•0 comments

How OpenAI Codex Works Behind-the-Scenes (and How It Compares to Claude Code)

https://blog.promptlayer.com/how-openai-codex-works-behind-the-scenes-and-how-it-compares-to-clau...
2•benwaffle•1h ago•0 comments

Myanmar armed groups disrupt China rare earth trade, sparking regional scramble

https://english.dvb.no/myanmar-armed-groups-disrupt-china-rare-earth-trade-sparking-regional-scra...
4•yorwba•1h ago•0 comments