frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

2•polishdude20•8h 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•8h 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•8h 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.

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

LLM Extension for Command Palette

https://github.com/LioQing/llm-extension-for-cmd-pal
1•throwaway888abc•3m ago•0 comments

Best Shilajit Brands in Canada – Top Brands to Buy Shilajit (2025)

https://kaiam.com/best-shilajit-brand-in-canada/
1•zafarali125•5m ago•1 comments

Pure Himalayan Shilajit Resin Free Spoon

https://opure.co/products/pure-himalayan-shilajit
1•zafarali125•6m ago•0 comments

Best AI editor for local models?

1•rocketbro•7m ago•0 comments

I was on a flight – but British Airways told me I wasn't

https://www.bbc.com/news/articles/cp3q5kqj80vo
1•ranit•13m ago•0 comments

Smaller, faster serialization for Ruby apps and beyond

https://oldmoe.blog/2025/05/05/smaller-faster-serialization-for-ruby-apps-and-beyond/
1•thunderbong•24m ago•0 comments

Internet Search Is Not a Naive Information Retrieval Problem

https://www.gojiberries.io/internet-search-is-not-a-naive-information-retrieval-problem/
1•deontology•26m ago•0 comments

175 Years Ago: Astronomers Discover Neptune, the Eighth Planet (2021)

https://www.nasa.gov/history/175-years-ago-astronomers-discover-neptune-the-eighth-planet/
2•thunderbong•27m ago•1 comments

How the ClientAuth Crackdown Is Pushing Finance Toward X9 PKI

https://www.digicert.com/blog/how-the-clientauth-crackdown-is-pushing-finance-toward-x9-pki
2•Sami_Lehtinen•37m ago•0 comments

Free Chapter of AI/ML Encyclopedia with Comics and Case Studies

https://github.com/Rezar/MLBook
2•rrawasi•38m ago•0 comments

Outlook stores email in Microsoft Cloud – what you need to know

https://blog.runbox.com/2025/05/outlook-stores-email-in-microsoft-cloud-what-you-need-to-know/
8•Sami_Lehtinen•38m ago•0 comments

Big Tech takes a harder line against worker activism, political dissent

https://www.washingtonpost.com/technology/2025/05/16/silicon-valley-workers-dissent-employment-layoffs-whistleblowers/
8•spenvo•41m ago•0 comments

Using unwrap() in Rust is Okay

https://burntsushi.net/unwrap/
2•todsacerdoti•42m ago•0 comments

My favourite fonts to use with LaTeX (2022)

https://www.lfe.pt/latex/fonts/typography/2022/11/21/latex-fonts-part1.html
3•todsacerdoti•42m ago•0 comments

Cold War Missile Silo for Sale in Washington

https://boundlessestates.com/underground-bunker-missile-silo-for-sale-washington/lGoBDCkw_aem__Uzi_pnKElUN1WMNy73V5A
1•gscott•43m ago•1 comments

A Linux kernel developer plays with Home Assistant: general impressions

https://lwn.net/SubscriberLink/1017720/7155ecb9602e9ef2/
2•pabs3•46m ago•0 comments

The Airbnb 2025 Summer Release

https://www.youtube.com/watch?v=wMo0IOsxU_8
1•Brysonbw•48m ago•0 comments

Behind Silicon Valley and the GOP's campaign to ban state AI laws

https://www.bloodinthemachine.com/p/de-democratizing-ai
5•spenvo•49m ago•0 comments

Ask HN: Anyone working in traditional ML/stats research instead of LLMs?

2•itsmekali321•52m ago•0 comments

Shit's Gonna Get So Fucking Weird and Terrible

https://sonderuncertainly.substack.com/p/shits-gonna-get-so-fucking-weird
7•unstatusthequo•52m ago•2 comments

Show HN: A Hybrid Multi-Model AI Platform

https://www.supergo.ai
1•snappyleads•54m ago•0 comments

DeepSeek-V3: Scaling Challenges and Reflections on Hardware for AI Architectures

https://arxiv.org/abs/2505.09343
1•nsoonhui•1h ago•0 comments

Moody's downgrades United States credit rating, citing growth in government debt

https://www.cnbc.com/2025/05/16/moodys-downgrades-united-states-credit-rating-on-increase-in-government-debt.html
2•donsupreme•1h ago•1 comments

Postman for MCP

https://usetexture.com/##
5•andes314•1h ago•1 comments

Laser Scarecrows [pdf]

https://rvpadmin.cce.cornell.edu/uploads/doc_1193.pdf
2•mmh0000•1h ago•0 comments

Fort Worth surpasses 1M residents, Princeton fastest-growing nationwide

https://www.nbcdfw.com/news/local/fort-worths-population-surpasses-1-million-residents-according-to-new-census-report/3841383/
2•geox•1h ago•0 comments

Getting Answers from a Big PDF with RubyLLM

https://max.engineer/giant-pdf-llm
1•hakunin•1h ago•0 comments

XTool – Cross-platform Xcode replacement

https://github.com/xtool-org/xtool
14•TheWiggles•1h ago•4 comments

It's Official: US Bans Huawei Ascend AI Chips – Criminal Penalties Threatened [video]

https://www.youtube.com/watch?v=w64wUZK2knc
1•xbmcuser•1h ago•1 comments

Wow@Home – Network of Amateur Radio Telescopes

https://phl.upr.edu/wow/outreach
12•visviva•1h ago•0 comments