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

Incident March 30th, 2026 – Accidental CDN Caching

https://blog.railway.com/p/incident-report-march-30-2026-accidental-cdn-caching
1•cebert•1m ago•0 comments

Adobe Illustrator can now use AI to rotate 2D vectors in 3D space

https://9to5mac.com/2026/03/30/adobe-illustrator-now-lets-you-rotate-2d-vectors-in-3d-space/
1•bundie•4m ago•0 comments

Universal Claude.md – cut Claude output tokens by 63%

https://github.com/drona23/claude-token-efficient
2•killme2008•6m ago•0 comments

Parsing a Chinese Poem as a Formal System That Runs

https://jimiwen.substack.com/p/si-wu-zi-4d7
1•jimiwen•9m ago•0 comments

Don't overthink electric car charging (we should be doing it differently)

https://www.youtube.com/watch?v=5NG4hycq8n0
1•em-bee•9m ago•0 comments

Six cloned horses help rider win prestigious polo match (2016)

https://www.science.org/content/article/six-cloned-horses-help-rider-win-prestigious-polo-match
1•pinkmuffinere•11m ago•1 comments

What I Talk About When I Talk About Grading

https://unintendedconsequenc.es/what-i-talk-about-when-i-talk-about-grading/
1•paulorlando•14m ago•0 comments

Maybe Finance Asset Sale

https://maybefinance.notion.site/asset-sale
1•raybb•17m ago•0 comments

Small ways the App Store could be improved for developers

https://lapcatsoftware.com/articles/2026/3/13.html
1•walterbell•18m ago•0 comments

Show HN: Cut your tail latencies by 74% with zero config

https://pkg.go.dev/github.com/bhope/hedge
1•soniccontroller•18m ago•0 comments

Rust's next-generation trait solver

https://lwn.net/SubscriberLink/1063124/81483612b1c8a493/
1•dabinat•21m ago•0 comments

A Man and the Elevator

https://joseantunes.tech/life/2026/03/22/the-elevator.html
1•zemike•23m ago•1 comments

Whispr Flow – Vision Flow

https://github.com/tanayvin1216/VisionFlow
1•tanay_vin•24m ago•1 comments

GTabs – AI tab organizer for Chrome that works with any LLM

https://github.com/vaddisrinivas/gtabs
1•srinivasvaddi•25m ago•0 comments

Yes, you need a Mac Mini

https://hyperengineering.bottlenecklabs.com/p/yes-you-actually-need-a-mac-mini
1•Areibman•25m ago•0 comments

Ask HN: Is anyone still resisting the slop onslaught?

2•0xDEFACED•25m ago•1 comments

The AI Shift: Will software engineers survive agentic AI?

https://www.ft.com/content/7325e967-5f4e-40b1-af3f-7d2351781843
1•mooreds•29m ago•0 comments

Think tank collaborate and earn bata testing

https://solve-hive-pro.base44.app
1•wesley-Alan•31m ago•0 comments

Ask HN: After three years of open source software, I can't stand it

https://github.com/drl990114/MarkFlowy
3•drl5•37m ago•0 comments

Adding custom webhooks to my Samsung smart ring

https://github.com/TheVellichor/SamsungOpenRing
1•_vellichor•45m ago•1 comments

Proposal for adding a useful pipe operator to JavaScript

https://github.com/tc39/proposal-pipeline-operator
1•jcbhmr•46m ago•0 comments

Review: The Wireless Cookbook

https://www.helpnetsecurity.com/2025/10/28/review-the-wireless-cookbook/
1•teleforce•47m ago•0 comments

Managing API keys and launching coding agents across providers

https://getaivo.dev
1•spirit23•48m ago•0 comments

What Happens When AI Stops Being Artificially Cheap

https://danielmiessler.com/blog/ai-stops-being-artificially-cheap
3•davikr•50m ago•1 comments

Using AI to inflate your ego

https://blog.avas.space/ai-ego/
1•davikr•50m ago•0 comments

Book Review: Building a Debugger

https://blogs.newardassociates.com/blog/2025/book-review-building-a-debugger.html
1•teleforce•51m ago•0 comments

Ask HN: What TLD would AI companies be using if .ai wasn't an option?

1•Cider9986•55m ago•0 comments

Coatue Projected $1.995T Valuation for Anthropic in 2030

https://www.newcomer.co/p/coatue-projected-1995-trillion-valuation
1•aanet•58m ago•0 comments

The Terrarium

https://www.lesswrong.com/posts/znbfRXHq285nS7NAh/the-terrarium
1•johnfn•59m ago•0 comments

Naga siren – song of the siren [video]

https://www.youtube.com/watch?v=Rs0vhQFIKx4&list=RDRs0vhQFIKx4
1•marysminefnuf•59m ago•0 comments