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

Show HN: Nono – Kernel-enforced sandboxing for AI agents

https://nono.sh
1•decodebytes•1m ago•0 comments

Kalynt – A privacy-first AI IDE with offline LLMs and P2P collaboration

https://github.com/Hermes-Lekkas/Kalynt
1•Hermes_276•3m ago•1 comments

Research reveals a surprising line of defense against cyber attacks: Accountants

https://techxplore.com/news/2026-01-reveals-line-defense-cyber-accountants.html
1•PaulHoule•3m ago•0 comments

Apple's Q4 2025 margin on Services was 76.5%

https://asymco.com/2026/02/01/margin-call-3/
2•zdw•3m ago•0 comments

Soda Consumption and Risk of Dementia

https://journals.sagepub.com/doi/10.1177/13872877251411414
1•wjb3•3m ago•0 comments

I built a tool to turn Reddit posts into TikTok videos without being on camera

https://nofaceclips.com
1•TallSession9532•4m ago•1 comments

Defeating a 40-year-old copy protection dongle

https://dmitrybrant.com/2026/02/01/defeating-a-40-year-old-copy-protection-dongle
1•zdw•5m ago•0 comments

Show HN: Bullstudio – BullMQ dashboard you run with npx

https://github.com/emirce/bullstudio
1•emirce•8m ago•0 comments

Chernobyl Exclusion Zone

https://en.wikipedia.org/wiki/Chernobyl_exclusion_zone
1•simonebrunozzi•9m ago•0 comments

Jellyfin Available on Tizen Store

https://github.com/jellyfin/jellyfin-tizen/issues/222
2•Rant423•12m ago•0 comments

Congestion Pricing's Unexpected Winners: Suburban Drivers

https://www.bloomberg.com/news/articles/2026-01-30/how-manhattan-s-congestion-toll-speeds-up-trip...
1•throw0101c•16m ago•2 comments

Execute your ChatGPT generated scripts without leaving it

https://medium.com/@BillMetangmo/execute-your-chatgpt-generated-scripts-without-leaving-it-678d7d...
1•azebazenestor•17m ago•0 comments

Elon Musk attacks "legacy" media amidst Epstein files meltdown on Twitter

https://xcancel.com/elonmusk/status/2017930408650772495
6•SilverElfin•19m ago•2 comments

Show HN: Clacker News – A Hacker News clone where only AI bots can post

https://clackernews.com
1•dsrtslnd23•19m ago•1 comments

I built >10 Free Tools in a few days

https://99helpers.com/tools
1•nickk81•20m ago•0 comments

The AI Boom Is Coming for Apple's Profit Margins

https://www.wsj.com/tech/the-ai-boom-is-coming-for-apples-profit-margins-4774013d
1•ViktorRay•20m ago•0 comments

Trump Jokes About Suing Warsh If He Doesn't Lower Interest Rates as Fed Chair

https://www.wsj.com/politics/policy/trump-jokes-about-suing-warsh-if-he-doesnt-lower-interest-rat...
3•throw0101c•22m ago•2 comments

A strong team is not the absence of rupture. It's the presence of repair [video]

https://www.youtube.com/watch?v=Auxs8ZsHRI4
1•kurinikku•23m ago•0 comments

Ask HN: The Next Big OS Leap

1•rafaelmdec•24m ago•2 comments

A shell --dry-run trick

https://jensrantil.github.io/posts/a-shell-dry-run-trick/
1•JensRantil•24m ago•0 comments

Palantir: Financed by Epstein, Fueled by Thiel

https://ahmedeldin.substack.com/p/palantir-financed-by-epstein-fueled
19•doener•25m ago•0 comments

Microdosing for Depression Appears to Work About as Well as Drinking Coffee

https://www.wired.com/story/microdosing-for-depression-appears-to-work-about-as-well-as-drinking-...
2•thisislife2•27m ago•2 comments

Seizing the Means of Production (Again)

https://taoofmac.com/space/notes/2026/02/01/1940
2•rcarmo•28m ago•0 comments

A Collection of Awesome Nostr Projects

https://github.com/aljazceru/awesome-nostr
1•nout•29m ago•0 comments

First Brands Did Some Round Trips

https://www.bloomberg.com/opinion/newsletters/2026-01-29/first-brands-did-some-round-trips
1•feross•31m ago•0 comments

Show HN: You Are an Agent

https://youareanagent.app
4•robkop•37m ago•0 comments

The Zero Human Company

https://blog.grvy.dev/blog/the-zero-human-company/
1•GRVYDEV•37m ago•0 comments

Beer Money

https://www.permanentequity.com/content/permanent-equitys-guide-to-beer-money
1•rwmj•42m ago•0 comments

My thousand dollar iPhone can't do math

https://journal.rafaelcosta.me/my-thousand-dollar-iphone-cant-do-math/
2•rafaelcosta•44m ago•0 comments

ConsentFix

https://pushsecurity.com/blog/consentfix
1•weinzierl•44m ago•0 comments