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

Show HN: Memory Vault – local-first memory, hybrid search, knowledge graph

https://github.com/MihaiBuilds/memory-vault
1•mihaibuilds•3m ago•0 comments

Show HN: Aptmatic – a TUI for managing apt across a bunch of Debian boxes

https://crates.io/crates/aptmatic
1•growse•3m ago•0 comments

Kanvly – notes and boards with AI, now on iOS

https://kanvly.com
1•trotskomain•10m ago•0 comments

Lua as a practical "soft-bedrock" language

https://portal.mozz.us/gemini/zaibatsu.circumlunar.space/~solderpunk/gemlog/lua-as-a-practical-so...
1•karl42•15m ago•1 comments

Agentwerk: A minimal Rust crate for agentic apps

https://github.com/canvascomputing/agentwerk
1•schirrmacher•19m ago•0 comments

The Chiplet Illusion: New Moore's Law or the Most Expensive Cover-Up?

https://sourceryintel.com/reports/the-chiplet-illusion
1•freakynit•19m ago•0 comments

Show HN: Transformer Math Explorer

https://simonramstedt.com/tools/transformer/
2•rmst•22m ago•1 comments

Solar on canals reduces water evaporation by 70% and algae growth by 85%

https://www.pv-magazine.com/2026/05/04/solar-on-canals-reduces-water-evaporation-by-70-and-algae-...
3•ndr42•22m ago•1 comments

Free guided journaling during the Mental Health Awareness Month

https://journal.cubitoo.com/en
1•pawelkomarnicki•25m ago•1 comments

The Cost of Downsizing Social Security

https://www.newyorker.com/news/deep-state-diaries/the-real-cost-of-downsizing-social-security
1•littlexsparkee•29m ago•1 comments

Experimental Rust-to-CUDA Compiler

https://github.com/NVlabs/cuda-oxide
1•cgravill•29m ago•1 comments

Goodbye Slack

https://ano.chat
1•bill-cupid•30m ago•0 comments

The World Inside Neural Networks

https://www.goodfire.ai/research/the-world-inside-neural-networks
3•wsgeorge•31m ago•0 comments

Terax – a 7mb AI terminal in Rust and Tauri [video]

https://www.youtube.com/watch?v=kykgXa7sm1g
3•netten•32m ago•0 comments

EU ban on Chinese inverters sparks strong response from Beijing

https://www.pv-magazine.com/2026/05/08/eu-ban-on-chinese-inverters-sparks-strong-response-from-be...
1•ndr42•35m ago•0 comments

Bun's experimental Rust rewrite hits 99.8% test compatibility on Linux x64 glibc

https://twitter.com/jarredsumner/status/2053047748191232310
3•heldrida•37m ago•1 comments

Steering Zig Fmt

https://matklad.github.io/2026/05/08/steering-zig-fmt.html
1•mpweiher•38m ago•0 comments

The troubled quest for tasty vegan cheese

https://www.economist.com/interactive/1843/2026/05/08/grate-expectations-the-troubled-quest-for-t...
1•pingou•39m ago•1 comments

Chrome's AI features may be hogging 4GB of your computer storage

https://www.theverge.com/tech/924933/google-chrome-4gb-gemini-nano-ai-features
1•elemar•43m ago•0 comments

Show HN: Cheapshot – GPS-based mobile game

https://cheapshot.co/
1•pakenrol•47m ago•3 comments

Autoenshittification (Background on WEI and Google Cloud Fraud Defence)

https://pluralistic.net/2023/07/24/rent-to-pwn/#kitt-is-a-demon
1•Voultapher•47m ago•1 comments

Radiolaria

https://en.wikipedia.org/wiki/Radiolaria
1•majkinetor•51m ago•0 comments

Vision: An Agent-Authored Control Architecture (Whitepaper)

https://sbarron.com/whitepapers/vision-system
2•iampneuma•52m ago•0 comments

Show HN: I Build a SaaS Loading Time Anxiety and Cost Calculator

https://vnta.agency/tools/saas-loading-time-anxiety-calculator
1•kartik_malik•1h ago•0 comments

Engineers Are Drifting

https://exhaustedmind.substack.com/p/your-engineers-are-already-drifting
1•Psychoterapist•1h ago•0 comments

Frontier plane reportedly strikes pedestrian on Denver Airport runway

https://www.cnn.com/2026/05/09/us/frontier-reportedly-pedestrian-denver-runway-hnk
1•Tomte•1h ago•0 comments

Claude Knew It Was Being Tested. Anthropic Built a Tool to Detect It

https://firethering.com/anthropic-nla-claude-thoughts-interpretability/
2•steveharing1•1h ago•0 comments

Squint

https://squint-cljs.github.io/squint/
2•Tomte•1h ago•0 comments

Elon Musk faces criminal probe in France after ignoring summons in X case

https://arstechnica.com/tech-policy/2026/05/elon-musk-faces-criminal-probe-in-france-after-ignori...
5•ndsipa_pomu•1h ago•0 comments

Export NotebookLM Responses as Properly Cited Docx/PDF [video]

https://www.youtube.com/watch?v=7jx0j9JsQ5o
2•MassiveLy_Easy•1h ago•1 comments