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

OpenAI tricked me into switching to a business account

1•probolsky•44s ago•0 comments

Why Do We Need Human Anything Anymore?

https://poshenloh.com/posts/20260919-math-ai
1•nopinsight•44s ago•0 comments

Catching Crumbs from the Table [pdf]

https://gwern.net/doc/fiction/science-fiction/2000-chiang.pdf
2•qingcharles•4m ago•0 comments

EU drops sponsorship of disinformation conference at Trump officials' request

https://www.theguardian.com/us-news/2026/oct/07/trump-eu-disinformation-conference
4•rdmuser•9m ago•0 comments

Why Isn't the Industry Freaking Out About DeepSeek 4.1 Flash?

https://www.dgt.is/blog/2026-10-07-deepseek-freek-out/
3•jonotime•14m ago•0 comments

Zpu

https://github.com/zylin/zpu
3•kristianpaul•14m ago•0 comments

AI cluster networking reading list: RDMA, collectives, fabrics

https://github.com/Rewsr/unawesome-ai-fabric-engineering
4•rewsiest•14m ago•0 comments

How to "Tell It Like It Is" More Effectively

https://mgrebler.substack.com/p/how-to-tell-it-like-it-is-more-effectively
3•mgrebler•19m ago•0 comments

Hackers hijack Google domains after breaching ccTLD registries

https://www.bleepingcomputer.com/news/security/hackers-hijack-google-domains-after-breaching-cctl...
4•sbulaev•21m ago•0 comments

100 days later: Microsoft still steers Windows and Copilot users to Edge

https://blog.mozilla.org/en/mozilla/over-the-edge-2-100-days-later/
5•thimabi•22m ago•1 comments

Bold AI developer takes aim at Adobe with open source clones

https://arstechnica.com/ai/2026/10/software-is-over-bold-ai-developer-takes-aim-at-adobe-with-ope...
4•pseudolus•22m ago•0 comments

AHM Statement on OpenAI's October 6 Release of Mathematical Documents

https://terrytao.wordpress.com/2026/10/07/ahm-statement-on-openais-october-6-release-of-mathemati...
3•smilelamp•24m ago•1 comments

Amazon employees hit by fresh job cuts across several teams

https://www.businessinsider.com/amazon-layoffs-hit-hundreds-of-employees-across-multiple-teams-20...
4•christhecaribou•25m ago•0 comments

Possible plague death at a Siberian lab baffles scientists

https://www.science.org/content/article/possible-plague-death-siberian-lab-baffles-scientists
1•doener•26m ago•0 comments

Learning cardiac dynamics via action-conditioned JEPAs

https://arxiv.org/abs/2604.22618
1•brandonb•29m ago•0 comments

What is the actual percentage of people For and Against AI?

4•Zeruxe•33m ago•13 comments

Goose: Safer, faster and <memory than Rust/C++ for algos where flat data matters

https://github.com/aardappel/goose/blob/master/README.md
4•bobbydigitales•35m ago•1 comments

Priceline to face FTC action over deceptive hotel ads

https://www.reuters.com/world/priceline-owner-face-ftc-action-over-affiliates-hotel-ads-sources-s...
3•JumpCrisscross•37m ago•0 comments

Neural Dynamics as the Composition of Quantized Units

https://arxiv.org/abs/2609.32487
1•brandonb•37m ago•0 comments

Map of USENET in 1986

https://twitter.com/0xtechnexus/status/2107954052927746241
2•bigwheels•40m ago•0 comments

BizGap – Automated lead generation from Google Maps

https://www.bizgap.online/
1•flaviorodrigues•42m ago•0 comments

Opentunnel – public URLs for anything running on your machine

https://opentunnel.xyz/
2•2bluesc•44m ago•0 comments

California wine glut sends premium bottles to Costco, others

https://www.latimes.com/business/story/2026-10-07/california-wine-glut-sends-premium-bottles-to-c...
2•brandonb•45m ago•1 comments

Kelly's AI Tax Bill Struggles to Link Tech with Economic Harms

https://news.bloombergtax.com/tax-insights-and-commentary/kellys-ai-tax-bill-struggles-to-link-te...
3•tldrthelaw•46m ago•0 comments

TXT DNS for Dns.google Contains a Google DNS Xkcd

https://dns.google/query?name=dns.google&rr_type=TXT
2•DoctorOW•47m ago•0 comments

I built a ridiculous game to test decision models vs. 9 LLMs

https://sausagebattlefield.made-by-benny.com/casestudy/
1•bennyr•50m ago•0 comments

Software developers are not okay [video]

https://www.youtube.com/watch?v=KsEpW03gxKg
3•sajithdilshan•51m ago•0 comments

Inner Loops: A Sourcebook for Fast 32-Bit Software Design by Rick Booth (1997)

https://www.amazon.com/dp/0201479605
3•peter_d_sherman•52m ago•0 comments

Mounting Proton Drive in Linux Like in Other OS's

https://oss.lsantos.dev/proton-drive-linux-fs/
1•khaosdoctor•53m ago•1 comments

Competitive and tiny decision model from Danger Labs

https://huggingface.co/DangerLabs/dm-jepa-1.5
1•DennisAleynikov•54m ago•2 comments