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

Meta admits to Instagram password reset mess, denies leaks

https://www.theregister.com/2026/01/11/infosec_news_in_brief/
1•maxloh•35s ago•0 comments

Show HN: Selfhosted – One click self hosted apps

https://github.com/zdunecki/selfhosted
1•zdunecki•58s ago•0 comments

Show HN: PrivateLink – Stop TikTok and others from embedding your info in links

https://private-link.com
2•huppp•3m ago•0 comments

I Try to Be Kind

https://hedgehogreview.com/web-features/thr/posts/why-i-try-to-be-kind
1•herbertl•4m ago•0 comments

Surface optimization governs the local design of physical networks

https://www.nature.com/articles/s41586-025-09784-4
1•dboreham•6m ago•0 comments

PawSense: Catproof Your Computer

http://bitboost.com/pawsense/
1•zdw•6m ago•0 comments

Former NYC Mayor Eric Adams rugs his own memecoin just 30 minutes after launch

https://old.reddit.com/r/CryptoCurrency/comments/1qbdgdt/former_nyc_mayor_eric_adams_rugs_his_own...
1•pulisse•6m ago•0 comments

Provenance Is the New Version Control

https://aicoding.leaflet.pub/3mcbiyal7jc2y
1•gpi•6m ago•0 comments

Ask HN: Only people who work in scientific research, how you benefit from AI

1•culanuchachamim•8m ago•1 comments

Show HN: Proc – A semantic CLI for process management

https://github.com/yazeed/proc
2•yazeedaloyoun•9m ago•0 comments

Sora2 – AI video generator with prompt builder and templates

https://sorax.io/
1•qmzm•9m ago•3 comments

The Post-American Internet

https://pluralistic.net/2026/01/01/39c3/#the-new-coalition
2•wyldfire•11m ago•2 comments

GRU Space is building humanity's first hotel on the Moon

https://www.gru.space/
2•d_silin•11m ago•0 comments

The most fascinating monitors at CES 2026

https://arstechnica.com/gadgets/2026/01/the-most-fascinating-monitors-at-ces-2026/
1•SilverElfin•13m ago•0 comments

Show HN: ZSweep – A keyboard-first Minesweeper inspired by Vim

https://zsweep.com
3•oug-t•14m ago•1 comments

Three Mistakes About Power and Justice (2025)

https://thenewdigest.substack.com/p/three-mistakes-about-power-and-justice
1•danielam•16m ago•0 comments

Google Releases Gemma Scope 2 to Deepen Understanding of LLM Behavior

https://www.infoq.com/news/2026/01/google-gemma-scope-2/
2•galaxyLogic•19m ago•0 comments

Crazy Speed with O Limiting Features with AI-Assisted Development

https://medium.com/@sirfifer/crazy-speed-w-o-limiting-features-with-ai-assisted-development-15882...
2•ramerman•24m ago•1 comments

David Foster Wallace's Syllabus

http://alasophia.blogspot.com/2008/09/david-foster-wallaces-syllabus.html
1•skogstokig•24m ago•0 comments

America's Biggest Power Grid Operator Has an AI Problem–Too Many Data Centers

https://www.wsj.com/business/energy-oil/power-grid-ai-data-centers-1235f296
3•fortran77•27m ago•1 comments

End the Fed (2025)

https://massie.house.gov/news/documentsingle.aspx?DocumentID=395707
3•barrister•28m ago•1 comments

Ask HN: Recommendations for self hostable OCR to extract code from images

2•vivzkestrel•29m ago•1 comments

LSP-Metals – Emacs Scala IDE Using Lsp-Mode to Connect to Metals

https://github.com/emacs-lsp/lsp-metals
1•TheWiggles•30m ago•0 comments

The Benjamin Button Effect: Software Careers in the Age of AI

https://softwareguru.substack.com/p/the-benjamin-button-effect-software
2•ssamptur•32m ago•2 comments

Uncovered: Secret room beneath Chinese embassy that poses threat to City

https://www.telegraph.co.uk/news/2026/01/12/revealed-china-embassy-secret-plans-spy-basement/
4•DustinEchoes•37m ago•1 comments

Wasefire

https://opensource.googleblog.com/2025/11/secure-by-design-firmware-development-with-wasefire.html
3•apitman•38m ago•0 comments

First impressions of Claude Cowork, Anthropic's general agent

https://simonwillison.net/2026/Jan/12/claude-cowork/
3•mfiguiere•38m ago•0 comments

Fed That Fights Back Is a Threat to Trump's Takeover Plan

https://www.bloomberg.com/news/features/2026-01-13/jerome-powell-fights-back-threatens-trump-s-fe...
3•JumpCrisscross•40m ago•0 comments

Invisible Risks That Kill Series A Rounds

https://blog.nemausat.com/series-a-technical-due-diligence-checklist
1•Ruidy•41m ago•1 comments

You Don't Need Mintlify

https://blog.tangled.org/docs
1•nerdypepper•43m ago•0 comments