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

The Right to Understand the Systems That Govern You

https://osamaalghanmi.substack.com/p/the-right-to-understand-the-systems
1•javasop•15s ago•0 comments

AI just got its toughest math test yet. The results are mixed

https://www.scientificamerican.com/article/first-proof-is-ais-toughest-math-test-yet-the-results-...
1•optiot•2m ago•1 comments

Google offers voluntary exit option to employees not comfortable with AI pace

https://www.moneycontrol.com/europe/?url=https://www.moneycontrol.com/technology/google-offers-vo...
1•itvision•2m ago•1 comments

French railway operator tests solar on train tracks

https://www.pv-magazine.com/2026/02/05/french-railway-operator-tests-pv-on-train-tracks/
1•svilen_dobrev•2m ago•0 comments

The World Wide MUD

https://codeberg.org/open-source-force/Roam
1•CurvatureTensor•3m ago•1 comments

Getting the Most Out of OpenClaw

https://github.com/laurentenhoor/devclaw
2•laurentenhoor•5m ago•0 comments

Pillars of AI-Native Agencies: Sales, Marketing and Back-Office

https://ai-native-agency.com/blog/ai-native-agency-verticals
1•victorgk_•5m ago•1 comments

Show HN: I built a concurrent BitTorrent engine in Go to master P2P protocols

2•Jyotishmoy•6m ago•0 comments

Stress and trading: how your nervous system sabotages your edge

https://m1nd.app/learn/trading-stress-nervous-system
1•timoslav•6m ago•0 comments

Chiseling Dotfiles: The Digital Mason

https://opensource-odyssey.net/posts/the-digital-mason/
1•C0d3Crusad3r•6m ago•1 comments

Show HN: SimpleClaw Shop – One click deployment for non technical users

https://simpleclaw.shop
1•phukon•7m ago•0 comments

Google and MS authored the spec that turns every site into an API for AI agents

https://twitter.com/aakashgupta/status/2022539848301842630
1•r2ob•7m ago•0 comments

My Claude Code Toolkit

https://newartisans.com/2026/02/my-claude-code-toolkit/
1•zdw•9m ago•1 comments

Three non-programming books for your booklist (2010)

https://sdtimes.com/professional-development/three-non-programming-books-for-your-booklist/
1•ohjeez•12m ago•0 comments

Sharing in Dada

https://smallcultfollowing.com/babysteps/blog/2026/02/14/sharing-in-dada/
1•todsacerdoti•12m ago•0 comments

A Review of M Disc Archival Capability. With long term testing results

http://www.microscopy-uk.org.uk/mag/artsep16/mol-mdisc-review.html
2•1970-01-01•13m ago•0 comments

Talking Again with Jon Gruber

https://paulkrugman.substack.com/p/talking-again-with-jon-gruber
1•bookofjoe•13m ago•0 comments

Just 5 weeks of brain training may protect against dementia for 20 years

https://www.sciencedaily.com/releases/2026/02/260211073023.htm
1•gradus_ad•16m ago•0 comments

Show HN: Rune-stone | A spec pattern for consistent AI code generation

https://github.com/vict00r99/Rune-stone
1•vict00r99•23m ago•3 comments

The most beautiful collection of science, mathematics, and internet resources

https://abakcus.com/
1•tempodox•25m ago•0 comments

Show HN: We built AI to help bidding teams – mentioned by Kunal Bahl on ET Now

https://www.contravault.com
1•tanmayjuneja8•25m ago•0 comments

New marketplace let's you exchange metals locall

https://metalmoves.app/
1•zekardd•26m ago•0 comments

Data Models

https://datamodels.databases.biz/
1•TheAceOfHearts•27m ago•0 comments

The Untold Story of NotPetya, the Most Devastating Cyberattack in History

https://www.wired.com/story/notpetya-cyberattack-ukraine-russia-code-crashed-the-world/
1•basilikum•28m ago•0 comments

Show HN: A "TLDR for the internet" – curious if this is your problem

https://ondex.co
1•andrevaillant•30m ago•1 comments

As Complexity Grows, Architecture Dominates Material

https://worksonmymachine.ai/p/as-complexity-grows-architecture
1•Stwerner•30m ago•0 comments

Platforms bend over backward to help DHS censor ICE critics, advocates say

https://arstechnica.com/tech-policy/2026/02/platforms-bend-over-backward-to-help-dhs-censor-ice-c...
21•pjmlp•31m ago•3 comments

Show HN: Whisper Money – Open-source, privacy-first personal finance app

https://github.com/whisper-money/whisper-money
1•falcon_•33m ago•0 comments

Why do office chairs have 5 legs? [video]

https://www.youtube.com/watch?v=kKt46Lch2bo
2•throw0101c•33m ago•0 comments

Hare 0.26.0 Released

https://harelang.org/blog/2026-02-13-hare-0.26.0-released/
3•birdculture•33m ago•0 comments