frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

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

NoteGen mobile devices are now available for early access

https://notegen.top
1•461229817•3m ago•0 comments

Trump's Handwritten Message to the Fed: Why Startups Should Pay Attention

https://masatoshinishimura.com/trumps-handwritten-message-to-the-fed-why-startups-should-pay-attention/
1•massanishi•4m ago•0 comments

iOS Activation Flaw Enables Pre-User Device Compromise and Identity Exposure

https://seclists.org/fulldisclosure/2025/Jun/27
1•pabs3•5m ago•0 comments

Kal Is Out at the Sun

https://kaltoons.substack.com/p/kal-is-out-at-the-sun
2•thunderbong•5m ago•0 comments

I tried to make new friends in my 30s

https://www.theguardian.com/lifeandstyle/2025/jul/01/adult-loneliness-making-friends-as-a-grown-up
1•legerdemain•6m ago•0 comments

Apple Direct Wireless Link

https://owlink.org/wiki/
1•gone35•6m ago•0 comments

Pulse Up – no algorithms, anonymously, real-time

https://www.indiehackers.com/post/pulse-up-no-algorithms-anonymously-real-time-drzHRm8UHg8PdbQLOXIC
1•pulseup•9m ago•0 comments

Holograph- Visual Programming with Propagator Networks

https://www.holograph.so/
2•dennishansen•12m ago•0 comments

Expand Your Worldview at Int'l Café

https://www.intl.cafe/
1•japappa•20m ago•0 comments

Apple

https://www.apple.com/
2•behnamoh•21m ago•1 comments

Sell your own data for $10 Dollars

https://momentarily.online/
1•Lovishotherdays•22m ago•1 comments

Radxa Unveils Intel N150 SoM and Carrier Board Supporting Six M.2 or U.2 Slots

https://linuxgizmos.com/radxa-unveils-intel-n150-som-and-carrier-board-with-dual-ethernet-and-support-for-six-m-2-or-u-2-devices/
1•chsum•23m ago•0 comments

The "Michael Angelakos Is Passion Pit" Residencies

https://passionpitmusic.substack.com/p/on-the-michael-angelakos-is-passion
1•JojoFatsani•28m ago•0 comments

Clamp / Median / Range

https://dotat.at/@/2025-07-02-cmp.html
2•Bogdanp•29m ago•0 comments

America's Mobile Security Crisis: It's Time for a Secure, Private Alternative

https://puri.sm/posts/americas-mobile-security-crisis-why-its-time-for-a-secure-private-alternative/
6•jethronethro•38m ago•1 comments

RFK Jr.'s health department calls Nature "junk science," cancels subscriptions

https://arstechnica.com/health/2025/07/rfk-jr-s-health-department-calls-nature-junk-science-cancels-subscriptions/
31•duxup•46m ago•6 comments

The Path to Medical Superintelligence

https://microsoft.ai/new/the-path-to-medical-superintelligence/
2•jonbaer•53m ago•0 comments

State of the Spack community: the Road to Version 1.0 [video]

https://indico.fnal.gov/event/69557/
1•teleforce•55m ago•0 comments

Product-Market Fit Is Retrospective Fiction

https://www.thebrokevc.com/p/product-market-fit-is-retrospective-fiction-7c36
2•joanwestenberg•57m ago•0 comments

People are using AI to 'sit' with them while they trip on psychedelics

https://www.technologyreview.com/2025/07/01/1119513/ai-sit-trip-psychedelics/
3•pseudolus•1h ago•0 comments

The Hamburger Menu Is No Longer a Hamburger Menu

https://www.datagubbe.se/dimburger/
6•zdw•1h ago•0 comments

Does education increase intelligence and does it matter? (2024)

https://theinfinitesimal.substack.com/p/does-education-increase-intelligence
1•johntfella•1h ago•0 comments

Hot acetic acid enables full recycling of carbon fiber composite materials

https://phys.org/news/2025-06-hot-acetic-acid-enables-full.html
4•PaulHoule•1h ago•0 comments

The End of the Arctic? Ocean Could Be Ice Free by 2015

https://www.thedailybeast.com/the-end-of-the-arctic-ocean-could-be-ice-free-by-2015/
2•bilsbie•1h ago•0 comments

Castlevania: Symphony of the Night Decompilation Project

https://sotn.xee.dev/
2•retro_guy•1h ago•1 comments

Young Americans Are Spending a Whole Lot Less on Video Games This Year

https://www.gamespot.com/articles/young-americans-are-spending-a-whole-lot-less-on-video-games-this-year/1100-6532877/
4•andsoitis•1h ago•0 comments

Benchmark for Evaluating Text Embeddings

https://huggingface.co/spaces/embedding-benchmark/RTEB
2•fzliu•1h ago•0 comments

Qantas customers involved in mammoth data breach

https://www.news.com.au/travel/travel-updates/incidents/qantas-customers-involved-in-mammoth-data-breach
1•aussieguy1234•1h ago•1 comments

New claim added: X opens up to Community Notes written by AI bots

https://www.theverge.com/news/696210/x-community-notes-ai-note-writers
3•bundie•1h ago•0 comments

HTTP: H Is for Hallucinated

https://www.jasonthorsness.com/28
2•jasonthorsness•1h ago•0 comments