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•1y 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

Peach – a free zero-knowledge password manager with paper disaster recovery

https://peachpasswords.com/
1•ashasoftware•37s ago•0 comments

New Zealand testing of Elon Musk's Starshield 'significant', US expert says

https://www.rnz.co.nz/news/science-and-technology/597104/new-zealand-testing-of-elon-musk-s-stars...
3•billybuckwheat•5m ago•0 comments

EEVBlog: Texas Instruments has changed specs of Jellybean OP-Amp

https://www.youtube.com/watch?v=22ZmmZ67SMY
1•brudgers•8m ago•0 comments

Automating Plain-Text Location Updates with Apple Shortcuts and Redis

https://www.nanjiangwill.com/blog/2-auto-update-location
1•jxmorris12•9m ago•0 comments

I Don't Want My Search Engine to Think for Me

https://searchzee.com/blog/search-without-ai-summaries
2•rajkverma123•12m ago•0 comments

Instagram accounts hacked using Meta AI

https://techcrunch.com/2026/06/01/hackers-hijacked-instagram-accounts-by-tricking-meta-ai-support...
2•mgh2•16m ago•0 comments

Amazon Has Axed Its New Stargate Series

https://www.gateworld.net/news/2026/06/amazon-axed-new-stargate-series/
2•Kye•17m ago•1 comments

Take Down Notification: Reckless Ben's Patreon Account

https://www.youtube.com/watch?v=36jxNeV5L1Q
1•healsdata•18m ago•0 comments

Gitea is 10 years old, but official repo is still hosted on GitHub

https://github.com/go-gitea/gitea
1•notRobot•20m ago•0 comments

Google Is Quietly Buying Code from Play Store Developers to Train AI

https://www.404media.co/google-is-quietly-buying-code-from-play-store-developers-to-train-ai/
3•SpyCoder77•22m ago•1 comments

"Virus – Vishanu" – Jayant V Narlikar

https://mitpress.mit.edu/9780262056281/virus/
2•aanet•22m ago•1 comments

Visual editor for React/MUI that touches your repo atomically

https://studio.crossui.com
1•linb•22m ago•0 comments

Microsoft Announces Open-Source "Intelligent Terminal"

https://www.phoronix.com/news/Microsoft-Intelligent-Terminal
1•Bender•24m ago•0 comments

Timebook – my time tracker is now an official ChatGPT app

https://chatgpt.com/apps/timebook/asdk_app_6a00269ef3bc8191b4238be56cffcbaa
1•pro_methe5•24m ago•0 comments

Anthropic faces AI spending backlash before IPO

https://www.axios.com/2026/06/02/anthropic-ipo-ai-sticker-shock-spending-usage
1•1vuio0pswjnm7•26m ago•0 comments

Show HN: Brontosaurus, a voice-driven generative AI canvas

https://thomasdhughes.com/brontosaurus/
1•thomasdhughes2•28m ago•2 comments

Ecdsa Fail

https://www.ecdsa.fail/
1•aburan28•31m ago•0 comments

Floating Point: The Origin Story

https://thechipletter.substack.com/p/floating-point-the-origin-story
2•hasheddan•34m ago•0 comments

GitHub Copilot App

https://github.blog/news-insights/product-news/github-copilot-app-the-agent-native-desktop-experi...
2•soheilpro•36m ago•1 comments

My Students Can't Read

https://www.chronicle.com/article/my-students-cant-read
10•computerliker•38m ago•5 comments

This Month in Ladybird – May 2026

https://ladybird.org/newsletter/2026-05-31/
1•bactobene•40m ago•0 comments

The Google Engineer Accused of Risking It All with an Insider Polymarket Bet

https://www.wsj.com/tech/google-engineer-polymarket-bet-4d27b6b7
1•1vuio0pswjnm7•41m ago•2 comments

Prototype theories deserve different evaluation criteria than finished ones

https://zenodo.org/records/20433733
2•ErystelaThevale•41m ago•0 comments

YouTube Auto speed for premium members [video]

https://www.youtube.com/shorts/P2cdhi1aSac
2•hentrep•45m ago•0 comments

1 in 5 U.S. Adolescents and Young Adults Use AI Chatbots for Mental Health

https://www.rand.org/news/press/2026/06/nearly-1-in-5-us-adolescents-and-young-adults-use-ai.html
2•mgh2•45m ago•0 comments

Winners of the 2026 Apple Design Awards

https://www.apple.com/newsroom/2026/06/apple-reveals-winners-of-the-2026-apple-design-awards/
1•soheilpro•45m ago•0 comments

More than 6 out of 10 people turn to AI for psychological support

https://www.axa.com/en/press/press-releases/2026-mind-health-report
4•mgh2•46m ago•0 comments

Why Does OpenAI Pretend to Be a Nonprofit?

https://www.wsj.com/opinion/why-does-openai-pretend-to-be-a-nonprofit-ca83ed83
2•1vuio0pswjnm7•48m ago•0 comments

2× – nine months later: We did it

https://ideas.fin.ai/p/2x-nine-months-later
1•mooreds•48m ago•0 comments

Why Fossil DVCS is so awesome for the lone developer; A podcast

1•techman001•51m ago•0 comments