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

Upscale AI Nabs Cash to Forge "SkyHammer" Scale Up Fabric Switch

https://www.nextplatform.com/2026/01/21/upscale-ai-nabs-cash-to-forge-skyhammer-scale-up-fabric-s...
1•rbanffy•3m ago•0 comments

Subagents, Commands and Skills Are Converging

https://www.vivekhaldar.com/articles/claude-code-subagents-commands-skills-converging/
1•todsacerdoti•3m ago•0 comments

GB Renewables Map

https://renewables-map.robinhawkes.com/
2•robin_reala•6m ago•0 comments

Offshore wind farms can enhance the structural composition of coastal waters

https://www.sciencedirect.com/science/article/pii/S2351989425005840
1•PaulHoule•7m ago•0 comments

Reflections on Re-Reading Dostoevsky's the Idiot (1976)

https://www.thesunmagazine.org/articles/23040-reflections-on-re-reading-dostoevsky-s-em-the-idiot-em
1•wslh•10m ago•0 comments

How to Steal Any React Component

https://fant.io/react/
1•SouravInsights•13m ago•0 comments

Show HN: Perspectives – I wanted AI to challenge my thinking, not validate it

https://getperspectives.app
1•Jamium•13m ago•0 comments

Sometimes Dropbox is just FTP: building a link shortener

https://blog.kronis.dev/blog/sometimes-dropbox-is-just-ftp-building-a-link-shortener
1•KronisLV•13m ago•0 comments

Drowning in information but still missing everything?

1•akhil08agrawal•13m ago•0 comments

AI boom could falter without wider adoption, Microsoft chief Satya Nadella warns

https://www.irishtimes.com/business/2026/01/20/ai-boom-could-falter-without-wider-adoption-micros...
2•latexr•15m ago•0 comments

I Gave Claude Code 9.5 Years of Health Data to Help Manage My Thyroid Disease

https://medium.com/data-science-collective/i-gave-claude-code-9-5-years-of-health-data-to-help-ma...
1•sebg•18m ago•0 comments

Will Google Become Our AI-Powered Central Planner?

https://www.thebignewsletter.com/p/will-google-organize-the-worlds-prices
1•verisimi•18m ago•0 comments

More than 200k UK workers switch to four-day week since 2019 (2025)

https://www.theguardian.com/business/2025/aug/23/uk-workers-four-day-week
1•robtherobber•19m ago•1 comments

UK holds off joining Trump's Board of Peace over Putin concerns

https://www.bbc.co.uk/news/articles/cp9jj1j74ggo
3•treadump•21m ago•0 comments

I replaced my ChatGPT subscription with a 12GB GPU

https://www.xda-developers.com/replaced-chatgpt-subscription-with-12gb-gpu-never-looked-back/
2•0xedb•24m ago•0 comments

More sovereign US bases? I dont think so

https://www.taxresearch.org.uk/Blog/2026/01/22/more-sovereign-us-bases-i-dont-think-so/
2•treadump•24m ago•0 comments

Google Antigravity is currently down for many users

https://discuss.ai.google.dev/t/antigravity-models-are-not-loading-even-tough-my-account-is-succe...
3•maarut•25m ago•0 comments

The necessary post-Trump consensus

https://www.taxresearch.org.uk/Blog/2026/01/22/the-necessary-post-trump-consensus/
1•treadump•26m ago•0 comments

AliSQL – MySQL with DuckDB storage engine from Alibaba

https://github.com/alibaba/AliSQL
1•tamnd•27m ago•0 comments

The stable marriage problem. Or, ask for things

https://acotra.substack.com/p/the-stable-marriage-problem
1•sebg•29m ago•0 comments

Prototypes vs. classes was: Re: Sun's HotSpot (1998)

https://lists.squeakfoundation.org/pipermail/squeak-dev/1998-October/017019.html
1•mpweiher•35m ago•0 comments

Further scarcity: World leaders allegedly reduce NAND flash production

https://www.heise.de/en/news/Further-scarcity-World-leaders-allegedly-reduce-NAND-flash-productio...
1•zhouzhao•36m ago•0 comments

Apps for boycotting American products surge to the top of the Danish App Store

https://techcrunch.com/2026/01/21/apps-for-boycotting-american-products-surge-to-the-top-of-the-d...
2•croes•37m ago•0 comments

Garbage Collection Can Be Faster Than Stack Allocation (1986) [pdf]

https://www.cs.princeton.edu/~appel/papers/45.pdf
1•tosh•40m ago•0 comments

From Human Ergonomics to Agent Ergonomics

https://wesmckinney.com/blog/agent-ergonomics/
1•sebg•40m ago•0 comments

Trump Proposes "Great Healthcare Plan"

https://damienduncan.substack.com/p/trump-proposes-great-healthcare-plan
1•Politicrux•44m ago•1 comments

Show HN: BetterTTS – Offline Lifelike TTS Web Reader for Windows

https://apps.microsoft.com/detail/9nbmnx7233mb?hl=en-US&gl=US
1•iqraathemanuel•48m ago•0 comments

Show HN: Crackable- a Cryptography CTF Platform

https://crackable.xyz/
1•bl4ckstack•49m ago•0 comments

The importance of humidity control in textile processing

https://www.condair.co.uk/knowledge-hub/the-importance-of-humidity-control-in-textile-processing
1•thunderbong•49m ago•0 comments

Sources: The SGLang project becomes RadixArk with a valuation of US$400M

https://techcrunch.com/2026/01/21/sources-project-sglang-spins-out-as-radixark-with-400m-valuatio...
1•01-_-•49m ago•0 comments