frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
1•Anon84•6m ago•0 comments

Infographic – An Infographic Generation and Rendering Framework

https://infographic.antv.vision/
1•javatuts•7m ago•0 comments

Vibe Coded X11 Server Written in Rust Adds Xinerama, FreeBSD Support

https://www.phoronix.com/news/YSERVER-1.3-Released
1•breve•8m ago•0 comments

The Declaration of Independence

https://acoup.blog/2026/07/04/collections-on-the-declaration-of-independence/
1•colonCapitalDee•8m ago•0 comments

Obsidian AI Setup – Bootstrap a Personalized Obsidian Vault with AI

https://github.com/anliberant/obsidian-ai-setup
1•javatuts•8m ago•0 comments

Reticulum Is Interesting

https://bergie.iki.fi/blog/reticulum-is-interesting/
1•bergie•11m ago•0 comments

Costco's growing cool factor attracts younger audiences

https://www.seattletimes.com/business/costcos-growing-cool-factor-attracts-younger-audiences/
1•TMWNN•11m ago•0 comments

The goal isn't to build "another AI IDE."

https://github.com/BotCoder254/limboo
1•telvin_Teum•13m ago•0 comments

Mama Look a White Dove

https://extelligence.substack.com/p/mama-look-a-white-dove
2•Aloha•25m ago•0 comments

Damo Academy unveils an AI agent able to discover superconductors

https://www.scmp.com/tech/big-tech/article/3359335/alibabas-elements-claw-ai-agent-unearths-four-...
2•yogthos•28m ago•0 comments

India's largest eVTOL demonstrator completes flight tests

https://newatlas.com/aircraft/india-evtol-demonstrator-sarla-aviation-sylla-shunya/
1•breve•29m ago•0 comments

Nvidia Has Become the Bank Behind the AI Boom

https://startupfortune.com/nvidia-has-quietly-become-the-bank-behind-the-ai-boom/
2•insanetechh•30m ago•0 comments

Tier-aware data federation between Postgres and Apache Iceberg

https://github.com/Modak-Labs/modak
1•addu390•34m ago•0 comments

Zo Computer

https://www.zo.computer
1•erhuve•38m ago•0 comments

America is destroying itself. It's no surprise

https://www.theguardian.com/commentisfree/2026/jul/04/us-history-destruction
5•skissane•38m ago•1 comments

Guix substitute and guix pull vulnerabilities

https://guix.gnu.org/blog/2026/guix-substitute-pull-vulnerabilities/
1•logickkk1•45m ago•0 comments

Scientists reverse brain aging, with a nasal spray

https://stories.tamu.edu/news/2026/04/14/scientists-reverse-brain-aging-with-a-nasal-spray/
47•cybermango•48m ago•8 comments

Apple Container 1.0 Released as a Native Docker Alternative for macOS

https://linuxiac.com/apple-container-1-0-released-as-a-native-docker-alternative-for-macos/
3•atkrad•48m ago•0 comments

Reflections on the Guillotine

https://theanarchistlibrary.org/library/albert-camus-reflections-on-the-guillotine
3•halperter•53m ago•0 comments

Blood Cell 'Nurseries' Upend Understanding of Human Physiology

https://news.feinberg.northwestern.edu/2026/07/02/blood-cell-nurseries-upend-understanding-of-hum...
2•cybermango•53m ago•1 comments

Be a Hikikomori for Science

https://www.theregister.com/science/2026/07/04/nasa-says-it-will-isolate-volunteers-from-the-outs...
5•johnea•57m ago•1 comments

Proxying inference requests in 6ms with Pingora, Envoy, and Spanner

https://modal.com/blog/serverless-servers
1•birdculture•59m ago•0 comments

Brawndo Plasma Thermos Makes What Plants Crave [video]

https://www.youtube.com/watch?v=brfSLxoHUps
1•westurner•59m ago•0 comments

Tungsten – an expressive, fast programming language

https://tungsten-lang.org/
3•jeffpeterson•1h ago•2 comments

Mapping with In-Memory Layers to Reduce LLM Overload

https://ridgetext.com/blog/mapbox-llm-composition
2•Buckwheat469•1h ago•0 comments

Jellyfont: Visual Search Engine for Fonts

https://www.jellyfont.xyz/
2•lcutner•1h ago•0 comments

Drone Autonomy Crash Course

https://www.cggonzalez.com/blog/index.html
2•cgg1•1h ago•0 comments

The Quest to Make Humanoid Robots Safe Enough for Humans

https://www.wsj.com/tech/the-quest-to-make-humanoid-robots-safe-enough-for-humans-4887c123
1•bookofjoe•1h ago•1 comments

Recovering garbled Bitcoin addresses (2024)

https://purplesyringa.moe/blog/recovering-garbled-bitcoin-addresses/
2•zX41ZdbW•1h ago•0 comments

AI Authentication and Authorization

https://fusionauth.io/articles/ai/ai-authentication-authorization
1•mooreds•1h ago•0 comments