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

Zymacs on Writing .gitignore Files

https://zymacs.github.io/
1•kernzistor45•4m ago•0 comments

FP-DSS: Floating Point Divider State Sampling

https://roots.ec/blog/fpdss
1•ledoge•6m ago•0 comments

Ask HN: What's the most profitable SaaS in this decade?

1•wasimsk•6m ago•0 comments

Carleton College Cookie House

https://www.nytimes.com/2026/04/17/dining/carleton-college-minnesota-cookie-house.html
1•js2•7m ago•1 comments

Turn a Kindle ASIN export into an Audible wishlist, automatically

https://github.com/hokocodes/kindle-to-audible
1•hokole•7m ago•0 comments

Machine Generated and Checked Proofs for a Verified Compiler (Experience Report)

https://arxiv.org/abs/2602.20082
1•matt_d•8m ago•0 comments

Rostra – P2P Social Network

https://rostra.me/
1•janandonly•9m ago•0 comments

A Common MVP Evolution: Service to System Integration to Product

https://www.skmurphy.com/blog/2017/08/07/a-common-evolution-service-to-system-integration-to-prod...
1•skmurphy•9m ago•1 comments

Up to 8M Bees Are Living in an Underground Network Beneath This Cemetery

https://www.discovermagazine.com/up-to-8-million-bees-are-living-in-an-underground-network-beneat...
1•janandonly•11m ago•0 comments

Stalwart-Sentinel – A physics-based logic gate to stop AI hallucinations

https://github.com/taxischramm347-pixel/Stalwart-Sentinel-MVP-/tree/main
1•taxi347•12m ago•0 comments

Sell your private code to the big labs

https://hashseatic.com/
1•mpcadosch•14m ago•0 comments

Machine-Generated Code Deserves Machine-Checked Proofs

https://zoep.github.io/blog/2026/04/17/machine-generated-code-machine-checked-proofs/
2•matt_d•14m ago•0 comments

Show HN: Agents.ml – a public identity page and A2A card for your AI agent

https://agents.ml
2•bayff•15m ago•1 comments

Loot Aura: The free map for finding yard sales and estate sales near you

https://lootaura.com
1•LanternNetworks•15m ago•0 comments

Self-Hosting

https://blog.pcora.eu/2026/04/12/on-selfhosting.html
1•speckx•15m ago•0 comments

Quake 3 Arena for Jira and Confluence

https://www.youtube.com/watch?v=uxrh0ShH12g
1•itomato•15m ago•1 comments

Saving a Lost Generation of Young Men – With Chop Saws

https://www.newyorker.com/news/annals-of-education/saving-a-lost-generation-of-young-men-with-cho...
3•mitchbob•18m ago•1 comments

Event Tensor: A Unified Abstraction for Compiling Dynamic Megakernel

https://arxiv.org/abs/2604.13327
1•mfiguiere•18m ago•0 comments

What Happens to Software When Proof Is Cheap? Allen School Distinguished Lecture [video]

https://www.youtube.com/watch?v=oSHVPvM56sA
1•matt_d•19m ago•0 comments

Operation PowerOFF: 53 DDoS domains seized and 3M criminal accounts uncovered

https://securityaffairs.com/190932/cyber-crime/operation-poweroff-53-ddos-domains-seized-and-3-mi...
1•lschueller•19m ago•0 comments

Show HN: Co-op: Your 24/7 Digital Intern

https://app.subconscious.dev/
3•ajayarama•19m ago•2 comments

The Narrative Crisis of Modern Baseball

https://www.thebulwark.com/p/the-narrative-crisis-of-modern-baseball-opening-day-2026
1•PaulHoule•20m ago•0 comments

MXMap: Email Providers of Dutch Municipalities

https://mxmap.nl/
2•cdrnsf•21m ago•0 comments

Why eldest siblings are brainier

https://www.economist.com/graphic-detail/2026/04/16/why-eldest-siblings-are-brainier
1•apparent•22m ago•2 comments

App Store reviews are busted

https://daringfireball.net/linked/2026/04/16/app-store-reviews-are-busted
3•erickhill•22m ago•0 comments

We beat Google's zero-knowledge proof of quantum cryptanalysis

https://blog.trailofbits.com/2026/04/17/we-beat-googles-zero-knowledge-proof-of-quantum-cryptanal...
4•lr0•22m ago•0 comments

Finding underpriced deals across secondary markets

https://www.graby.ai
12•LayneS•23m ago•0 comments

Strapi: Open-Source Alternative to Sanity and Contentful – OpenAlternative

https://openalternative.co/strapi
2•massoudstar•23m ago•0 comments

Show HN: Git-stage-batch – curate clean commit history before pushing

https://github.com/halfline/git-stage-batch
2•twelvenmonkeys•23m ago•0 comments

Show HN: Paper Lantern – on-demand techniques from 2M+ papers for coding agents

https://www.paperlantern.ai/code
1•paperlantern•25m ago•0 comments