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

Nvidia Groq Update: Everyone Gets Rich, Patent Warfare Begins

https://ossa-ma.github.io/blog/groq-update
3•simonebrunozzi•3m ago•0 comments

Show HN: LoureiroGate – Differentiable Physics Guardrails for PyTorch

https://github.com/Ashioya-ui/loureiro-gate
1•pb_lightmind•10m ago•2 comments

The Cost of Translation

https://www.ramijames.com/thoughts/the-cost-of-translation
9•ramijames•10m ago•0 comments

Vect AI – The Autonomous Marketing OS for 10x Growth

https://www.google.com/search?q=site%3Avect.pro&oq=s&gs_lcrp=EgZjaHJvbWUqCAgDEEUYJxg7MgYIABBFGDwy...
1•WoWSaaS•10m ago•3 comments

Fifteen Most Famous Transcendental Numbers

https://sprott.physics.wisc.edu/pickover/trans.html
1•vismit2000•11m ago•0 comments

TPU Mania

https://thechipletter.substack.com/p/tpu-mania
1•klelatti•11m ago•0 comments

Hide Distractions and Clutter on GitHub

https://codeberg.org/toastal/github-less-social
1•8organicbits•11m ago•0 comments

Assessment of the effects of large-scale PV development in desert areas

https://www.nature.com/articles/s41598-024-72860-8
1•zeristor•12m ago•0 comments

The Shifting World of OSINT with Craig Silverman [video]

https://www.youtube.com/watch?v=Lmj42F6HrPo
1•gessha•14m ago•0 comments

Show HN: An AI social networking app that treats hallucinations as a feature

https://friendtest.fun/
1•funldsaw•18m ago•0 comments

How supermarkets turned loyalty cards into a data treasure trove

https://www.rte.ie/brainstorm/2025/1227/1407120-supermarket-loyalty-cards-customers-data-behaviou...
2•austinallegro•20m ago•1 comments

The world wants more Ube

https://www.nytimes.com/2025/12/29/world/asia/philippines-ube-purple-yam.html
1•lawgimenez•22m ago•0 comments

My Writing Isn't AI Slop–and It Hurts That You Think It Is

https://news.ycombinator.com/submitted?id=haebom
1•haebom•24m ago•1 comments

Show HN: Your backend will fail eventually

https://www.zoyla.app
2•behnamazimi•25m ago•1 comments

Google Doppl

https://labs.google/doppl/
4•ms7892•27m ago•1 comments

Windows VTL2 Technical Exploration

https://howknows.github.io/roooot.github.io/VTL2/Windows_VTL2_Technical_Exploration.html
1•PaulHoule•27m ago•0 comments

The Honey Files Expose Major Fraud

https://www.youtube.com/watch?v=qCGT_CKGgFE
1•garyng•28m ago•0 comments

Who Invented the Transistor?

https://people.idsia.ch/~juergen/who-invented-the-transistor.html
1•todsacerdoti•31m ago•0 comments

Group Customer Interviewing Practice

https://adrianhoward.com/posts/group-user-interviewing-practice/
1•adrianhoward•32m ago•0 comments

AI Futures Model: Dec 2025 Update (to the AI 2027 forecast)

https://blog.ai-futures.org/p/ai-futures-model-dec-2025-update
1•ta_u•33m ago•1 comments

Bitwise ETFs Expansion: Firm Files for 11 New Altcoin Strategy Funds

https://timescrypto.com/cryptonews/regulation-and-policy/bitwise-etfs-expansion-firm-files-for-11...
1•Alan_Rada•35m ago•0 comments

Ask HN: What tiny tool do you use every day but never talk about?

2•puildupO•37m ago•1 comments

Show HN: SWOTPal – Analyze LinkedIn profiles and websites into SWOT charts

https://swotpal.elevenapril.com
1•elevenapril•43m ago•1 comments

US stock market returns – 1870 to present

https://themeasureofaplan.com/us-stock-market-returns-1870s-to-present/
1•simonebrunozzi•45m ago•0 comments

How to Be More Agentic

https://usefulfictions.substack.com/p/how-to-be-more-agentic
1•vidyesh•49m ago•0 comments

Show HN: JSciPy – A Java port of SciPy's signal processing module

https://github.com/hissain/jscipy
1•hissain•51m ago•0 comments

Show HN: Generate your personal HN recap for 2025

https://hn-2025.userjam.com
11•giladvdn•51m ago•1 comments

Removing CapCut Watermarks Using Video Inpainting and Temporal Consistency

https://blog.videowatermarkremove.com/remove-capcut-watermark-ai
1•ilmj8426•52m ago•0 comments

Swiss Federal Council includes apprentices in the official end of year photo

https://www.20min.ch/story/guy-parmelin-bundesratsfoto-2026-soll-authentische-landesregierung-zei...
1•theanonymousone•52m ago•0 comments

AI Futures Model

https://www.aifuturesmodel.com/
1•zielmicha•53m ago•0 comments