frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

The End Of Upward Mobility – AI is coming for the meritocracy

https://www.noemamag.com/the-end-of-upward-mobility/
1•meep_meep_meep•37s ago•0 comments

BugBash'26 Keynote: We won, what now?

http://muratbuffalo.blogspot.com/2026/04/bugbash26-keynote.html
1•ghuntley•2m ago•0 comments

Virtual Worlds

https://worksinprogress.co/issue/virtual-worlds/
1•surprisetalk•7m ago•0 comments

The toilet took five minutes. My phone took the rest

https://salari-dev.medium.com/my-wife-knew-i-didnt-need-20-minutes-in-the-bathroom-so-did-i-49358...
1•salari_dev•8m ago•0 comments

The Conveniences I Used to Write a Book About Inconvenience

https://lithub.com/the-conveniences-i-used-to-write-a-book-about-inconvenience-definitely-not-ai/
1•celadevra_•9m ago•0 comments

ProviderCallbackHost is an allow-list, not a destination

https://nkap.dev/
1•devalerek•10m ago•0 comments

CSE 452: Google's Introduction to Distributed System Design

https://courses.cs.washington.edu/courses/cse452/23wi/papers/yegge-platform-rant.html
1•birdculture•10m ago•0 comments

Mvndy (Comic)

https://mvndy.cl
1•DanielVZ•11m ago•0 comments

Archive.yesterday: an empirical study of the Streisand effect

https://gyrovague.com/
1•u1hcw9nx•14m ago•1 comments

Tired of Astra eating all my credits. DotSwarm to the Rescue

https://github.com/Druidia-Bot/DotSwarm
1•AnotherWallace•19m ago•0 comments

Probes into Toronto's shooter-for-hire network thwarted by impenetrable phone

https://www.theglobeandmail.com/canada/article-probes-toronto-shooter-for-hire-impenetrable-phone...
2•throw0101a•20m ago•1 comments

Sifty, free text classification with one URL and no API key

https://sifty.dev
1•raploze•21m ago•1 comments

Ask HN: How do you guys stay on top of the code that is generated?

2•vinayak-shukla•23m ago•1 comments

Jev Use Cases Tested: Where This Decision-Only AI Fits

https://www.mindstudio.ai/blog/jev-use-cases-automation
1•taubek•26m ago•0 comments

PDF Artifacts: What they are and why they matter for Accessibility

https://pdf4wcag.com/blog-news/what-is-an-artifact-in-pdf
1•JilBill•26m ago•4 comments

SoftBank Seeks Over $11 Billion in Junk Bonds for OpenAI Bet

https://www.bloomberg.com/news/articles/2026-09-21/softbank-seeks-over-11-billion-in-junk-bond-de...
2•scrlk•26m ago•1 comments

Show HN: See what ChatGPT, Claude and Gemini say about your business

https://kelriva.ai/ai-visibility-score
2•mrbucuci•26m ago•0 comments

The Coal Conquest – There was no shortage of trees

https://www.ageofinvention.xyz/p/age-of-invention-the-coal-conquest
1•baud147258•28m ago•1 comments

What defenders need from frontier AI labs

https://vincenzoiozzo.com/blog/offense-winning-ai-race
1•snagg•28m ago•0 comments

Show HN: Accordia – Structured 1-on-1s for engineering managers

https://www.getaccordia.com
1•NotGeorgeHere•28m ago•0 comments

On the Recent EuRuKo

https://greg.molnar.io/blog/on-the-recent-euruko/
1•PKop•29m ago•0 comments

The bizarre world of the V Programming Language

https://justinas.org/the-bizarre-world-of-v
2•lr0•30m ago•0 comments

MIT uses AI to identify aging "zombie cells."

https://news.mit.edu/2026/unmasking-zombie-cells-aging-tissue-ai-powered-barcode-0921
1•luckyl•33m ago•0 comments

Every "not that" you typed was a rule you hadn't written yet

https://firstlastword.substack.com/p/every-not-that-you-typed-was-a-rule
1•grrrtttt•33m ago•0 comments

Where the physical economy is being built: 10k planned projects worldwide

https://fluidify.org/map
1•gts_nesov•34m ago•1 comments

AI-controlled robot arms attempted harmful tasks 97% of the time

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-controlled-robot-arms-attem...
2•rbanffy•36m ago•2 comments

The CobaltC interpreter has landed

https://github.com/strawberry9/CobaltC
1•VolatileRegiste•37m ago•0 comments

Sleeper Service: Agents as a Service. One agent. One task. A thousand of them

https://github.com/willjohnson/sleeper-service
1•wj•37m ago•1 comments

Cat Frazier, Whose Retro GIFs Celebrated a Weirder Internet, Dies at 35

https://www.nytimes.com/2026/09/16/arts/catherine-frazier-dead.html
1•mistersquid•38m ago•0 comments

Show HN: Local-coder – Build a team of coding agents with local models

https://github.com/gmarland/local-coder
1•gamerdrome•38m ago•1 comments