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

Show HN: Collect and triage feedback from users and AI agents

https://mostlovedproduct.com/
1•jcoc611•1m ago•0 comments

Ask HN: How to present my work (Internet and Software) to 3rd graders?

2•recvonline•1m ago•0 comments

Chicago Restaurant Staff Expel Nick Fuentes and Throw Raw Beef

https://demokratis.co.id/en/fuentes-expelled-chicago-restaurant
2•extasetoi12•6m ago•0 comments

Before They Were Dinosaurs: How Humanity Discovered the Deep Past

https://lifework.marioishikawa.com/before-they-were-dinosaurs/
1•ishikawa•6m ago•0 comments

Is RSA Broken? What This Week's Quantum Panic Means for OT, MQTT, and

https://iiotjob.com/blog/is-rsa-broken-quantum-panic-ot-mqtt-opc-ua
2•ishikawa•7m ago•0 comments

How a tiny HTTP response preview ended up buffering a 64 MB download

https://octri.dev/blog/how-a-response-preview-buffered-an-entire-download
1•khalidkhair•9m ago•0 comments

Olmicro

https://github.com/allenai/olmicro
2•kristianpaul•14m ago•0 comments

The Business of War (2002)

https://www.icij.org/investigations/makingkilling/business-war/
1•nixass•17m ago•0 comments

Free Domainsproject.org Tool – Website Audit

https://domainsproject.org/tools/audit
1•tb0hdan•18m ago•1 comments

Salesforce SOV-Omni-1-Mini: An Open-Weight Speech and Reasoning Model

https://huggingface.co/blog/salesforce-sovereign-intelligence/sov-omni-1-mini
1•qainsights•20m ago•0 comments

Alexander the Great's burial complex found in Egypt, archaeologist claims

https://www.livescience.com/archaeology/ancient-egyptians/alexander-the-greats-tomb-complex-has-b...
2•cobbzilla•20m ago•1 comments

The NSA's six steps to prepare for post-quantum cryptography

https://arstechnica.com/gadgets/2026/12/the-nsas-six-steps-to-prepare-for-post-quantum-cryptography/
1•sogoh•21m ago•0 comments

Basic post-quantum mitigations on Windows 11

https://ssg.dev/basic-post-quantum-mitigations-on-windows-11/
1•sedatk•22m ago•0 comments

NixOS Specialisations

https://nobe4.fr/posts/nixos-specialisations/
1•birdculture•23m ago•0 comments

Why Salesforce stopped reporting AI revenue

https://www.semafor.com/article/12/03/2026/why-salesforce-stopped-reporting-ai-revenue
3•cybermango•23m ago•1 comments

Henry T. Brown's 507 Mechanisms

https://mechanisms.wiki/
2•gaws•24m ago•0 comments

The Demand for Frontier Intelligence

https://openai.com/index/the-demand-for-frontier-intelligence/
1•Bitvexel•25m ago•0 comments

FantasticML: Expert-Verified Evaluation of Agents at the Frontier of ML Research

https://arxiv.org/abs/2612.03329
2•bohanlyu•26m ago•0 comments

The Rehabilitation of a Curve

https://www.johndcook.com/blog/2026/12/03/the-rehabilitation-of-a-curve/
1•titusblair•26m ago•0 comments

Advent of Places: Cinelease Studios

https://computer.rip/2026-12-02-advent-2.html
1•titusblair•26m ago•0 comments

WEF: AI to create 217M jobs, destroy 128M by 2032 [pdf]

https://reports.weforum.org/docs/WEF_Future_of_Jobs_Report_2027.pdf
1•cybermango•27m ago•0 comments

From Brisbane to Brimbank – Israeli AI in operation at public swimming pools

https://www.deepcutnews.com/p/from-brisbane-to-brimbank-israeli
1•gravisultra•27m ago•0 comments

Stillhold – encrypted photos, notes, files and calendar in one account

https://stillhold.cloud
1•saho•27m ago•0 comments

Nvidia CEO faces ridicule and rebuke from both parties over affair scandal

https://www.reuters.com/world/china/us-senators-grill-nvidia-ceo-jensen-huang-over-china-first-pu...
3•JumpCrisscross•28m ago•0 comments

Beyond the Blackboard: Why MCPs and Shared State Need Fail-Closed Governance

https://medium.com/@xoras.systems/beyond-the-blackboard-why-mcps-and-shared-state-need-fail-close...
1•anjox68•29m ago•0 comments

The Europa Concept (Full Documentary) [video]

https://www.youtube.com/watch?v=Lbnb_HZP9io
1•kristianpaul•30m ago•0 comments

What This Week's Cryptography News Means for You

https://www.eff.org/deeplinks/2026/12/what-weeks-cryptography-news-means-you
2•hn_acker•31m ago•0 comments

Agents from 4 AI lab work together to slain ender dragon

https://www.kipiiler.me/blog/seven-agents-one-dragon
1•kipiiler•32m ago•0 comments

DoorDash says customer data was accessed in AI-assisted cybersecurity breach

https://www.cbc.ca/news/canada/doordash-cyberattack-personal-info-accessed-9.7447175
2•dotmanish•32m ago•0 comments

The Justice Department Is Helping Patent Owners Dodge Antitrust Scrutiny

https://www.eff.org/deeplinks/2026/12/justice-department-helping-patent-owners-dodge-antitrust-sc...
3•hn_acker•33m ago•0 comments