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

WireGuard Is Two Things

https://www.proxylity.com/articles/wireguard-is-two-things.html
1•mlhpdx•2m ago•0 comments

Anyone else having GitHub Actions fail?

2•munksbeer•2m ago•0 comments

White House AI Video Tweet

https://twitter.com/WhiteHouse/status/2031895801064985021
1•csomar•4m ago•0 comments

Ever Onward IBM [video]

https://www.youtube.com/watch?v=L9oh3gqOEKU
1•walterbell•17m ago•0 comments

Why are so many statues naked? An art historian explains its ancient roots

https://theconversation.com/why-are-so-many-statues-naked-an-art-historian-explains-this-traditio...
2•1659447091•17m ago•0 comments

PhDs and other experts making $16/HR training AI to kill their own jobs

https://nymag.com/intelligencer/article/white-collar-workers-training-ai.html
3•suzzer99•20m ago•1 comments

The Bold Environmental Vision of President Jimmy Carter

https://www.motherjones.com/politics/2024/12/president-jimmy-carter-death-100-environmental-legac...
2•altilunium•22m ago•0 comments

US intelligence says Iran government is not at risk of collapse

https://www.reuters.com/business/media-telecom/us-intelligence-says-iran-government-is-not-risk-c...
4•tartoran•23m ago•1 comments

Why are some stars always visible while others come and go with the seasons

https://theconversation.com/why-are-some-stars-always-visible-while-others-come-and-go-with-the-s...
3•1659447091•28m ago•0 comments

Hightitan, a lightweight framework for high-concurrency data streaming

1•HIGHTITAN•32m ago•0 comments

Offline Computing

https://robertsdotpm.github.io/software_engineering/offline_computing.html
3•Uptrenda•33m ago•0 comments

Ask HN: Built API monitor with root cause analysis – unable to find first users

1•acrtic•36m ago•0 comments

.ORG Domain Price Increases June 1, 2026

4•ommz•37m ago•2 comments

Show HN: AutoICD API – AI clinical coding platform for ICD-10 and SNOMED

https://autoicdapi.com
1•FedeUY•40m ago•0 comments

Everyone's new favorite protein bar hit with class-action lawsuit over calories

https://www.nbcnewyork.com/news/david-protein-bar-calories-class-action-lawsuit/6475387/
2•randycupertino•43m ago•1 comments

Quantsynth – Forecast evaluation and dataset analysis before modeling

https://quantsynth.org/
1•slyyyy•45m ago•1 comments

Show HN: MCP server for ICD-10 and SNOMED clinical coding

https://github.com/fcggamou/autoicd-mcp
1•FedeUY•47m ago•0 comments

Tetris Is Hard with Just One Piece Type

https://arxiv.org/abs/2603.09958
2•bmc7505•55m ago•0 comments

Why Big Nations Lose Small Wars: The Politics of Asymmetric Conflict

https://www.researchgate.net/publication/259380603_Why_Big_Nations_Lose_Small_Wars_The_Politics_o...
4•rramadass•1h ago•0 comments

I Stopped Writing Prompts and Started Writing Systems

https://medium.com/@robert.shane.kirkpatrick/i-stopped-writing-prompts-and-started-writing-system...
2•totalvaluegroup•1h ago•2 comments

Fossil Version 2.28

https://fossil-scm.org/home/info/version-2.28
1•chungy•1h ago•1 comments

The United States Could Lose the Gulf

https://foreignpolicy.com/2026/03/05/iran-israel-united-states-war-gulf-countries-alliances/
4•ParentiSoundSys•1h ago•0 comments

Oil hits $100 a barrel despite deal to release record amount of reserves

https://www.bbc.com/news/articles/c1w5141vx53o
35•tartoran•1h ago•26 comments

Procreate Dreams 2

https://procreate.com/dreams
1•twalichiewicz•1h ago•0 comments

Iran-Backed Hackers Claim Wiper Attack on Medtech Firm Stryker

https://krebsonsecurity.com/2026/03/iran-backed-hackers-claim-wiper-attack-on-medtech-firm-stryker/
16•2bluesc•1h ago•0 comments

'Web Kit' vs. 'WebKit' (2006)

https://daringfireball.net/2006/05/web_kit_vs_webkit
5•dddddaviddddd•1h ago•0 comments

I Built an Agent First Micro SaaS

https://mochipdf.com
2•cbolgiano•1h ago•2 comments

Show HN: Live Kaiwa – real-time Japanese conversation support

https://livekaiwa.com/login
1•diasks2•1h ago•0 comments

Pentagon seeks system to ensure AI models work as planned

https://www.militarytimes.com/industry/techwatch/2026/03/12/pentagon-seeks-system-to-ensure-ai-mo...
2•KnuthIsGod•1h ago•0 comments

US Marine Corps pursues thermal cloaks to hide troops from heat sensors

https://www.militarytimes.com/industry/techwatch/2026/03/11/us-marine-corps-pursues-thermal-cloak...
3•KnuthIsGod•1h ago•2 comments