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

The rise and fall of the Sprinkles empire

https://www.latimes.com/business/story/2026-01-11/rise-fall-of-sprinkles-empire-that-made-cupcake...
1•lxm•35s ago•0 comments

Show HN: I built a Chrome DevTools-style panel for Shopify themes

https://github.com/yakohere/shopify-theme-devtools
1•yakohere•1m ago•0 comments

After RAM and SSDs, PSUs and CPU coolers are next in line for price hikes

https://www.notebookcheck.net/After-RAM-and-SSDs-PSUs-and-CPU-coolers-are-next-in-line-for-price-...
2•akyuu•4m ago•0 comments

Show HN: IDE that works with Claude Code and Antigravity subscription

https://nucleus.terramind.com
1•terramind_com•4m ago•0 comments

Write Less with AI

https://writelesswithai.com/
1•3rodents•5m ago•0 comments

Linkers and Loaders

https://www.os2museum.com/wp/book-review-linkers-loaders/
1•dboon•7m ago•0 comments

China-linked cybercrims abused VMware ESXi zero-days a year before disclosure

https://www.theregister.com/2026/01/09/china_esxi_zerodays/
1•Bender•8m ago•0 comments

Show HN: Stewardly - tracking software, renewals, ownership, and audit context

https://usestewardly.com/
1•xyzadam•9m ago•0 comments

QR codes a powerful new phishing weapon in hands of Pyongyang cyberspies

https://www.theregister.com/2026/01/09/pyongyangs_cyberspies_are_turning_qr/
1•Bender•9m ago•0 comments

Linus Torvalds: Stop making an issue out of AI slop in kernel docs

https://www.theregister.com/2026/01/08/linus_versus_llms_ai_slop_docs/
2•Bender•10m ago•0 comments

Re: Datacenters in space. What shall history say of us?

https://github.com/andrewmccalip/thoughts/pull/4/files
2•bluejellybean•12m ago•0 comments

Apple Withdraws iOS 18 Security Updates

https://www.forbes.com/sites/zakdoffman/2025/12/27/apples-iphone-upgrade-hundreds-of-millions-of-...
4•zaltekk•12m ago•0 comments

Acquired Tastes

https://www.nytimes.com/2026/01/10/briefing/acquired-tastes.html
3•paulpauper•15m ago•0 comments

The History of Picture Books

https://www.nytimes.com/2026/01/09/books/review/edward-steichen-lewis-hine-tana-hoban-childrens-p...
3•paulpauper•16m ago•0 comments

My Austin Visit

https://marginalrevolution.com/marginalrevolution/2026/01/my-austin-visit.html
2•paulpauper•17m ago•0 comments

Dying Gasp

https://en.wikipedia.org/wiki/Dying_gasp
2•tripdout•21m ago•0 comments

The missing step in business decisions: proper pre-diagnosis

2•SteveOeksuz•23m ago•0 comments

Culture Isn't Stagnating, You Guys Are Just Old

https://www.jenn.site/culture-isnt-stagnating-you-guys-are-just-old/
3•aelerinya•23m ago•0 comments

Bose SoundTouch Go Library – Complete API with WebSocket Events

https://github.com/gesellix/Bose-SoundTouch
3•gesellix•24m ago•1 comments

Rcarmo/toadbox: Contain your coding agents (literally)

https://github.com/rcarmo/toadbox
2•rcarmo•24m ago•0 comments

Agile for Agents

https://www.enterprisevibecode.com/p/agile-for-agents
2•mlady•25m ago•1 comments

Show HN: Interactive California Budget (by Claude Code)

https://california-budget.com
1•sberens•27m ago•0 comments

From Jax to VLIW: Tracing a Computation Through the TPU Compiler Stack

https://patricktoulme.substack.com/p/from-jax-to-vliw-tracing-a-computation
1•EvgeniyZh•27m ago•0 comments

Came to CES to Check Solar Power Innovations. China Is Running Laps Around Us

https://uk.pcmag.com/power-supplies/162522/i-came-to-ces-to-check-out-energy-and-solar-power-inno...
3•thunderbong•34m ago•0 comments

Why Gemini 3 Flash is the model OpenAI is afraid of

https://blog.brokk.ai/why-gemini-3-flash-is-the-model-openai-is-afraid-of/
2•mooreds•34m ago•0 comments

AI industry insiders launch site to poison the data that feeds them

https://www.theregister.com/2026/01/11/industry_insiders_seek_to_poison/
7•atomic128•34m ago•0 comments

Global AI Adoption in 2025: A Widening Digital Divide

https://www.microsoft.com/en-us/corporate-responsibility/topics/ai-economy-institute/reports/glob...
2•giuliomagnifico•35m ago•0 comments

UML based testing of nftables firewalls

https://github.com/khimaros/nftsim
1•khimaros•36m ago•1 comments

Show HN: A Second of Your Time – a song anyone can change, one second at a time

https://www.whoisnaz.com/a-second-of-your-time
1•4thstreet•37m ago•0 comments

Show HN: Rick and Morty Inspired Multiverse News

https://greenportal.news
1•barelysapient•42m ago•0 comments