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•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•12mo 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

Migrate from Stainless to APIMatic CodeGen

https://migrate-from-stainless.apimatic.io/
1•m3h•1m ago•0 comments

A NixOS GUI

https://kalken.github.io//ezblog/#ezconf
1•linux4dummies•2m ago•0 comments

Why is rendering text so complicated? [video]

https://www.youtube.com/watch?v=4soZ33MvlW4
1•theis_once•5m ago•0 comments

Humble Tech Book Bundle: The Ultimate Functional Programming

https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books
1•Tomte•9m ago•0 comments

End of a Semester

https://mtendekuyokwa.github.io/blog/end-of-semester/
2•sonderotis•12m ago•1 comments

Using Claude to apply a book, not just summarize it

https://lswith.io/posts/how-i-approached-showing-your-work/
2•lswith•12m ago•0 comments

Automate the Food (2024)

https://chisness.substack.com/p/automate-the-food
2•thelastgallon•15m ago•0 comments

SpaceX IPO set to ensure Elon Musk cannot be fired

https://www.ft.com/content/00382ab9-3dfe-468c-8966-853cd787dd43
2•1vuio0pswjnm7•16m ago•0 comments

OpenJDK: Project Leyden

https://openjdk.org/projects/leyden/
2•tosh•16m ago•0 comments

What's Easy Now? What's Hard Now?

https://brooker.co.za/blog/2026/05/18/whats-easy-whats-hard.html
2•r4um•18m ago•0 comments

He's king of the AI boom. Why do former colleagues say he can't be trusted?

https://www.washingtonpost.com/technology/2026/05/16/elon-musk-trial-against-sam-altman-renews-qu...
2•1vuio0pswjnm7•20m ago•0 comments

Filipino virtual assistants behind LinkedIn's "thought leadership" content mill

https://restofworld.org/2026/virtual-assistant-linkedin-engagement/
4•jethronethro•23m ago•0 comments

Building a Location Display Map with PCB Art

https://www.robopenguins.com/pcb-map/
2•axlan•25m ago•1 comments

Layoffs and Harsh AI Reality Inside Meta

https://www.cnbc.com/2026/05/18/metas-layoffs-starting-this-week-underscore-zuckerbergs-ai-realit...
2•signa11•26m ago•1 comments

Transition of Adobe eBook Platform to Wipro Engineering

https://helpx.adobe.com/enterprise/kb/eol-faq-adobe-digital-editions.html
2•tusslewake•27m ago•0 comments

Show HN: Closed Rings – A CLI-first time tracker for developers

https://closedrings.sh/en
2•samacs•28m ago•0 comments

Fender escalates legal campaign against S-style guitars

https://www.guitarworld.com/gear/electric-guitars/fender-cease-and-desist-lsl-instruments
3•rectang•28m ago•1 comments

A Fearful Phone Call and a Frantic Search Preceded Mosque Shooting

https://www.nytimes.com/2026/05/18/us/san-diego-mosque-shooting-search.html
2•Cider9986•32m ago•0 comments

Signal warns it would pull out of Canada if made to comply with access bill

https://www.theglobeandmail.com/politics/article-signal-warns-it-would-pull-out-of-canada-if-made...
8•gnabgib•38m ago•3 comments

Show HN: MyUUIDshop, Generate UUIDs and never worry about duplicates

https://myuuid.shop
2•scrygl•39m ago•1 comments

Show HN: Nano-RAG – Agentic multi-hog retrieval without graph database

2•freakynit•41m ago•0 comments

Microsoft rejects critical Azure vulnerability report, no CVE issued

https://www.bleepingcomputer.com/news/security/microsoft-rejects-critical-azure-vulnerability-rep...
4•olearysec•42m ago•0 comments

Windows AI Background Services Are Slowing Down Your PC

https://www.fixtech.co.ke/2026/05/windows-ai-background-services-are.html
4•rindodi•47m ago•2 comments

Show HN: It is hard to show genuine work on HN

3•shailendra_sis•50m ago•3 comments

Mini Shai-Hulud Strikes Again: 314 npm Packages Compromised

https://safedep.io/mini-shai-hulud-strikes-again-314-npm-packages-compromised/
5•theanonymousone•52m ago•0 comments

Nordstjernen Web Browser

https://www.nordstjernen.org/
5•roschdal•53m ago•2 comments

What I Told Charles About RFCs

https://uaxd.fr/dispatches/what-i-told-charles-about-rfcs.html
1•enoch_cg•58m ago•0 comments

Linux 7.1-rc4: security list "almost unmanageable" from AI bug reports

https://lwn.net/Articles/1073192/
4•zdkaster•1h ago•1 comments

No, I don't want my kids using your stupid AI

https://www.theglobeandmail.com/life/article-no-i-dont-want-my-kids-using-your-stupid-ai/
4•petethomas•1h ago•3 comments

The 30 Year Game

https://remysharp.com/2026/05/17/the-30-year-game
1•tobr•1h ago•0 comments