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

Every Mac comes with an (undocumented) family member classifier

https://8rank.ai/game/apple-intelligence-personal-knowledge-graph
1•infwhispers•2m ago•0 comments

Vale: Bring code-like linting to prose

https://vale.sh
1•Garbage•4m ago•0 comments

Running a law firm on Free software

https://decoded.legal/blog/2026/11/running-a-law-firm-on-free-software-2026-edition/
1•DeepLogin•9m ago•0 comments

Port 0: The Port That Does Not Exist

https://acid.vegas/blog/the-port-that-does-not-exist/
1•NewCzech•10m ago•0 comments

The Unix Philosophy – F/OSS Comics

https://fosscomics.com/posts/9.%20The%20Unix%20Philosophy/
1•vismit2000•10m ago•0 comments

Need for Speed Underground 2 online in the browser

https://nfsu2.xyz/
1•fluxusars•12m ago•0 comments

Project Reclaimer: One Engine for Every Bungie Halo

https://projectreclaimer.dev
1•herunan•16m ago•0 comments

Number of Tries Using Coding Agents May Say More About Standards Than Competence

https://codemanship.wordpress.com/2026/11/07/how-many-tries-we-need-using-coding-agents-may-say-m...
1•mpweiher•16m ago•0 comments

IP address portability between 2 ISPs (2025)

https://www.fdn.fr/portabilite-adresse-ip-aquilenet-fdn/
1•selfhoster1312•18m ago•1 comments

Data centers backlash fueled historic blue wave

https://www.cnn.com/2026/11/07/politics/democrats-midterms-data-centers-ken-paxton-james-talarico
1•flowerlad•19m ago•0 comments

DocuAPI

https://www.docuapi.dev/
1•asteriskeng•20m ago•1 comments

Show HN: I taught my Fujifilm X-T30 II to print on an instax Link 3 over BLE

https://ronangaillard.github.io/posts/fujifilm-x-t30-ii-instax-link-3/
2•j_leboulanger•21m ago•0 comments

Show HN: FastVM – MicroVMs that sleep on idle and wake when packets arrive

https://github.com/tuananh/fastvm
2•tuananh•22m ago•0 comments

Best Restaurant in Abu Dhabi for Seafood Lovers – Shams Al Bahar

https://shamsalbahar.com
2•zahnafathimaa•30m ago•0 comments

How close are Ubuntu 26.04's Rust coreutils to GNU? I diffed 27 utilities

https://github.com/karolkulesza/port-anything/tree/main/showcases/ubuntu-uutils
2•karol-kulesza•33m ago•0 comments

Beyond Transformers: Can LLMs redesign themselves as they train?

https://www.doubleai.com/research/can-llms-redesign-themselves-as-they-train
2•laginimaineb•36m ago•0 comments

Nondeterminism in Futhark

https://futhark-lang.org/blog/2026-11-04-nondeterminism.html
2•birdculture•36m ago•0 comments

Doctor Yellow

https://en.wikipedia.org/wiki/Doctor_Yellow
2•tosh•38m ago•0 comments

Show HN: Mdt

https://github.com/VaibhavAcharya/mdt
2•vaibhavacharya•38m ago•0 comments

Show HN: I built a food recall tracker with ML classification and email alerts

https://brentbutkow.me/projects/recall-radar
2•brenttb•43m ago•0 comments

The hardware bet is wrong. It is running from a war

https://twitter.com/withYougori/status/2118840199400587576
2•Yougori•51m ago•0 comments

Vibrating Mattress Helps Clear Alzheimer's Protein from the Brain

https://www.nature.com/articles/s41467-026-78894-y
2•tapper•52m ago•2 comments

Show HN: Service for the parallel execution of AI agent tasks on remote devices

https://rungrid.space
1•deahesi•55m ago•0 comments

AI Source Code Analysis Detection Evasion Techniques

https://cipher.org.uk/2026/11/06/AI-Source-Code-Analysis-Detection-Evasion-Techniques/
3•cphr•56m ago•0 comments

APM – A dependency manager for AI agents

https://microsoft.github.io/apm/
1•Garbage•57m ago•0 comments

An internet radio station run by AI

https://radio.neoncurrent.dev/
1•williswee•1h ago•0 comments

About a Third of Americans Have Left an Online Community

https://www.pewresearch.org/short-reads/2026/11/06/about-a-third-of-americans-have-left-an-online...
2•giuliomagnifico•1h ago•0 comments

Writing as a Thinking Tool

http://muratbuffalo.blogspot.com/2026/11/writing-as-thinking-tool.html
1•eigenBasis•1h ago•0 comments

OpenAI reportedly raises an additional $11B at a $1.25T valuation

https://techcrunch.com/2026/11/06/openai-reportedly-raises-an-additional-11-billion-at-a-1-25-tri...
5•sjdh76•1h ago•0 comments

Missile Thermal Batteries

https://medium.com/@jayduggy87/missile-thermal-batteries-how-they-work-and-whats-inside-7c7869bfd661
2•aggrrrh•1h ago•0 comments