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

Whetstone: AI agents don't lack capability, they lack process

https://ilia.ws/blog/ai-agents-dont-lack-capability-they-lack-process
1•ilia-a•1m ago•0 comments

Charting the AI perception gap between experts and the public

https://link.springer.com/article/10.1007/s00146-026-03023-8
1•i7l•1m ago•0 comments

Gmail Storage Full? Find and Delete Large Emails to Fix It Fast

https://clearmailapp.com/blog/gmail-storage-full-delete-large-emails/
1•raghukumar•1m ago•0 comments

When merchandise crowds the aisle and carts crowd the shopper: Effects on sales

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0346492
1•ndr42•1m ago•0 comments

Airborne Microplastics May Be Warming the Planet

https://e360.yale.edu/digest/airborne-microplastics-climate-change
1•speckx•2m ago•0 comments

Practical Package Security: The Unofficial Guide

https://www.wiz.io/blog/practical-package-security-the-unofficial-guide
1•yarapavan•2m ago•0 comments

Show HN: Pagoda – a Tichu ML Powered game trained on human games

https://liqpil.com/pagoda/
1•pcrausaz•4m ago•0 comments

Show HN: I made a local proxy for AI tool calls to keep my API keys safe

https://github.com/factorly-dev/factorly
1•jsherer•4m ago•0 comments

Pricing Is a Product Surface

https://arnon.dk/pricing-is-a-product-surface/
1•arnon•6m ago•0 comments

Ask HN: Is manual review the only way to govern the AI-generated code?

1•dicksent•8m ago•0 comments

Coinbase lays off 14% of staff

https://www.marketwatch.com/story/coinbase-will-lay-off-14-of-its-staff-as-ai-spurs-a-new-way-of-...
2•spikepuppet•8m ago•0 comments

AI Agents That Builds Themselves

https://twitter.com/joaomdmoura/status/2049562041007194275
1•gmays•8m ago•0 comments

Mnemara – Fix Claude agent loops and drift with a self-monitoring role doc

https://github.com/mekickdemons-creator/mnemara
1•Mekickdemons•8m ago•1 comments

British mathematician hands OpenClaw agent a credit card

https://www.theregister.com/2026/05/05/british_mathematician_tinkers_with_openclaw/
1•beardyw•9m ago•0 comments

AgentOS: A portable open-source operating system for agents

https://github.com/rivet-dev/agent-os
1•yakkomajuri•9m ago•0 comments

ClearlyDefined: A Three-Year Roadmap for Sustainability and Growth

https://opensource.org/blog/clearlydefined-a-three-year-roadmap-for-sustainability-and-growth
1•Tomte•10m ago•0 comments

Apple Eyes Intel and Samsung as Backup US Chipmakers

https://www.macrumors.com/2026/05/05/apple-talks-intel-samsung-us-chipmakers/
1•mgh2•11m ago•0 comments

Sci-Hub MCP Server (Unofficial)

https://pypi.org/project/sci-hub-mcp-server/
1•Debvex•11m ago•2 comments

Monero's largest contributor accused of stealing community funds

https://github.com/monero-project/meta/issues/1326
1•thuum7•11m ago•0 comments

Convergence Engine

https://github.com/SAIOS-SAMN/convergence-engine
1•dem7701•12m ago•0 comments

The Lopsided Economics of Vulnerabilities

https://opensourcesecurity.io/2026/05-vulnerability-economics/
1•Tomte•13m ago•0 comments

CloudZ Malware Abuses Microsoft Phone Link to Steal SMS and OTPs

https://www.bleepingcomputer.com/news/security/cloudz-malware-abuses-microsoft-phone-link-to-stea...
2•Brajeshwar•14m ago•0 comments

Event sourcing with a little help from AI

https://albertoarena.it/posts/ai-laravel-event-sourcing/
1•speckx•15m ago•0 comments

We built deterministic routing enginebypass geopolitical supply chain chokeholds

https://book.stripe.com/fZu5kCaBZ1JpaYTflPgEg05
1•BSG-BAM•15m ago•0 comments

Show HN: Aimeat, BBS-style sysop culture for the AI era

https://github.com/miikkij/aimeat-protocol
1•hamuf•15m ago•1 comments

Kinetype – a minimalist terminal roguelike survival game

https://store.steampowered.com/app/4556110/Kinetype/
2•SpyCoder77•16m ago•0 comments

Sunsetting Rec Room: How to Give a Beloved Product the Ending It Deserves

https://www.tyleo.com/blog/sunsetting-rec-room-how-to-give-a-beloved-product-the-ending-it-deserves
1•tyleo•17m ago•1 comments

Ubuntu Chromium Snap prevents encrypted storage of passwords by default

https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1996267
2•nh2•17m ago•1 comments

Update on "Co-Authored-By: Copilot" in Commit Messages – Issue #314311

https://github.com/microsoft/vscode/issues/314311
3•birdculture•18m ago•0 comments

SubQ: a sub-quadratic LLM with 12M-token context

https://subq.ai/introducing-subq
5•mitchwainer•19m ago•2 comments