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

Show HN: MD Serve – Serve a directory of Markdown files as rendered HTML

https://github.com/nikolassv/md-serve
1•kalonis•1m ago•0 comments

Show HN: Tablelot, A real estate marketplace exclusively for restaurants

https://tablelot.com
1•isandeep1995•4m ago•0 comments

Show HN: A live map showing the mood

https://mood2know.com/
1•gloussou•8m ago•0 comments

Show HN: kitty-graphics.el – Images, LaTeX and PDFs in terminal Emacs

https://github.com/cashmeredev/kitty-graphics.el
2•cashmere1337•10m ago•1 comments

60 Unicorns Have Fallen – State of the European Unicorns Ecosystem

https://thevcinsider.substack.com/p/state-of-the-european-unicorns-ecosystem
1•matthieu_bl•11m ago•0 comments

The State of AI in the Enterprise 2026

https://www.deloitte.com/us/en/what-we-do/capabilities/applied-artificial-intelligence/content/st...
1•swolpers•15m ago•0 comments

Show HN: Moveet – real-time fleet simulator with A* pathfinding on real roads

https://github.com/ivannovazzi/moveet
1•ivannovazzi•16m ago•0 comments

Claude 2028 – For a More Perfect Union

https://claude2028.org/
2•jonbaer•16m ago•0 comments

AutoKernel: Autoresearch for GPU Kernels

https://github.com/RightNow-AI/autokernel
6•frozenseven•20m ago•0 comments

Passkeys were supposed to replace passwords, but they're failing

https://www.howtogeek.com/passkeys-were-supposed-to-replace-passwords-but-theyre-failing-for-the-...
2•vdelitz•21m ago•1 comments

Zen Fascists Will Control You

https://www.ianbetteridge.com/zen-fascist-wi/
1•brunohaid•23m ago•0 comments

Compact-dict – a cache-local, linear probing hash map in Rust

https://github.com/gustawdaniel/compact-dict
3•gustawdaniel•24m ago•1 comments

Prisoner's Dilemma in World Baseball Classic for Mexico and Italy Threatens USA

2•travisjungroth•25m ago•0 comments

I'm going to build my own OpenClaw, with blackjack and bun

https://github.com/rcarmo/piclaw
8•rcarmo•26m ago•0 comments

I Reduced 5 hours of Testing my Agentic AI applcaition to 10 mins

https://github.com/onepaneai/mantis
1•ashmil•27m ago•1 comments

SpacetimeDB: A Short Technical Review

https://strn.cat/w/articles/spacetime/
1•quantumwoke•29m ago•0 comments

Show HN: Lightsecond Video Surveys

https://lightsecond.io/
2•dmonn•30m ago•0 comments

SpaceX launches 15K-pound TV satellite to orbit on its 30th mission of the year

https://www.space.com/space-exploration/launches-spacecraft/spacex-launches-15-000-pound-tv-satel...
2•Brajeshwar•30m ago•0 comments

Story of Weda Bay: How nature is being sacrificed for mining

https://www.theguardian.com/environment/ng-interactive/2026/mar/11/how-mining-threatens-the-world...
2•defrost•33m ago•0 comments

Download Xiaohongshu Video

https://downloadxiaohongshuvideo.com/
2•Evan233•34m ago•0 comments

C++26: The Oxford Variadic Comma

https://www.sandordargo.com/blog/2026/03/11/cpp26-oxford-variadic-comma
3•ingve•35m ago•0 comments

Axllm: DSPy for TypeScript

https://axllm.dev/
2•handfuloflight•37m ago•0 comments

Mathematics is undergoing the biggest change in its history

https://www.newscientist.com/article/2518526-mathematics-is-undergoing-the-biggest-change-in-its-...
5•jonbaer•37m ago•2 comments

Coding agents for production iOS: a senior engineer's setup for 2x the output

https://ignatovv.me/blog/coding-agents-for-production-ios/
3•tosh•38m ago•0 comments

Microsoft patents system for AI helpers to finish games for you

https://www.dexerto.com/gaming/microsoft-patents-system-for-ai-helpers-to-finish-games-for-you-33...
3•JeanKage•39m ago•0 comments

Millennium Challenge 2002

https://en.wikipedia.org/wiki/Millennium_Challenge_2002
1•vrganj•41m ago•0 comments

PromptVault free tool for multi agentic development

2•bohdokas•42m ago•0 comments

Ask HN: How to Plan for a Better GTM for a Digital SaaS Product B2B

1•sriramgonella•45m ago•0 comments

The 'number station' sending mystery messages to Iran

https://www.ft.com/content/86c4a4ca-ca06-4fc8-90fe-4f46357b804f
4•thm•46m ago•1 comments

White-Box Attacks on PhotoDNA Perceptual Hash Function

https://eprint.iacr.org/2026/486
1•_____k•47m ago•0 comments