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

Deadnet is agent vs. agent gameplay and chat

https://deadnet.io
1•drewlong•3m ago•1 comments

Brit says he is not elusive Bitcoin creator named by New York Times

https://www.bbc.com/news/articles/cgrl4l1y9yxo
1•Brajeshwar•4m ago•0 comments

Show HN: Embedding Similarity with Confidence Intervals

https://www.embedding-analytics.com
1•areebms•4m ago•0 comments

OpenRAG

https://github.com/langflow-ai/openrag
2•saikatsg•5m ago•0 comments

Testing suggests Google's AI Overviews tell lies per hour

https://arstechnica.com/google/2026/04/analysis-finds-google-ai-overviews-is-wrong-10-percent-of-...
2•mikelgan•6m ago•1 comments

The Privilege of Doing Nothing

https://alterick.bearblog.dev/nothing/
1•speckx•6m ago•0 comments

A 24/7 live AI-generated sitcom where agents write their own episodes

https://tv.bothn.com
1•pranabsarkar•7m ago•0 comments

Middle East ceasefire in serious doubt as Israel assaults Lebanon

https://www.theguardian.com/world/2026/apr/08/middle-east-ceasefire-doubt-israel-lebanon-iran-oil...
1•n1b0m•10m ago•0 comments

When Moltbook's Supabase key went public, the AI agents didn't panic

https://aigeopolitics.substack.com/p/the-moltbook-social-media-platform-dd5
1•billfriend•11m ago•0 comments

NASA Artemis II Wallpapers

https://www.nasa.gov/artemis-ii-mobile-wallpapers/
3•bookofjoe•13m ago•0 comments

Write Not to Be Read (Yes, You Read That Right)

https://canro91.github.io/2026/04/07/NotRead/
1•speckx•14m ago•0 comments

I Solved Connect 4

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

Show HN: Host Infinite Python Services

https://phemeral.dev/docs
1•cshjoshi•17m ago•0 comments

AI-Driven Demand for Gas Turbines Risks a New Energy Crunch

https://www.bloomberg.com/features/2025-bottlenecks-gas-turbines/
1•sethbannon•18m ago•0 comments

Built a tool that simulates company-specific interviewers

https://portlumeai.com
1•portlumeai•18m ago•0 comments

A Learning a Day: Daily Posts Since May 2008

https://alearningaday.blog/archives/
1•Olshansky•18m ago•0 comments

Show HN: OpenMix, open-source computational framework for formulation science

https://github.com/vijayvkrishnan/openmix
2•vijayvkrishnan•19m ago•0 comments

With Cox V. Sony The Supreme Court Provides Another Internet-Protecting Decision

https://www.techdirt.com/2026/04/07/with-cox-v-sony-the-supreme-court-provides-yet-another-intern...
2•hn_acker•19m ago•1 comments

What Is Ghost Murmur? Secretive CIA Tool Linked to Iran Airman Rescue

https://www.newsweek.com/ghost-murmur-secretive-cia-tool-iran-airman-rescue-11797688
3•petethomas•19m ago•0 comments

Upgrading MacBook Neo to 1 TB using iPhone parts [video]

https://www.youtube.com/watch?v=bIeEGeTd5DE
2•burnt-resistor•20m ago•0 comments

Why LLMs Can't Play Chess

https://www.nicowesterdale.com/blog/why-llms-cant-play-chess
3•osrec•20m ago•1 comments

Understanding the Kalman Filter with a Simple Radar Example

https://kalmanfilter.net
3•alex_be•20m ago•0 comments

Tesla can play music from a floppy drive

https://twitter.com/olegkutkov/status/2041925827416277460
1•stefan_•20m ago•0 comments

RenderDraw Lens – Give AI coding tools visual context from the browser

https://renderdraw.com/tools/lens
2•eshivers•21m ago•0 comments

Do DMCA Takedown Notices Need to Expressly Refer to the Lack of Fair Use?

https://blog.ericgoldman.org/archives/2026/03/do-dmca-takedown-notices-need-to-expressly-refer-to...
2•hn_acker•21m ago•1 comments

Show HN: Canvora – describe what you want, get a branded visual in any language

https://canvora.ai
1•vivekalogics•22m ago•0 comments

Greece to ban social media for under-15s from next year

https://www.bbc.com/news/articles/ckgx1x742x5o
3•Brajeshwar•24m ago•0 comments

The reason your Fort Lauderdale competitor is ranking above you

https://fortauderdaleseo.substack.com/p/the-reason-your-fort-lauderdale-competitor
1•auditnews•25m ago•1 comments

How Pakistan managed to get the US and Iran to a ceasefire

https://www.aljazeera.com/features/2026/4/8/how-pakistan-managed-to-get-the-us-and-iran-to-a-ceas...
1•rkp8000•25m ago•0 comments

Scaling Managed Agents: Decoupling the brain from the hands

https://www.anthropic.com/engineering/managed-agents
2•meetpateltech•25m ago•0 comments