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

Not sure how to view or share your Claude Code sessions? Drop them right here

https://specious.github.io/obsession/
1•specious•8m ago•0 comments

Carbon dioxide levels in the atmosphere just hit a 'depressing' new record

https://www.scientificamerican.com/article/carbon-dioxide-levels-in-the-atmosphere-just-hit-a-dep...
2•rolph•9m ago•0 comments

Why is southern Italy poorer than northern Italy?

https://statsandsociety.substack.com/p/fully-explaining-the-italian-south
2•paulpauper•11m ago•0 comments

Arthur Brooks on Reinvention, Religion, and the Science of Happiness (Ep. 274)

https://conversationswithtyler.com/episodes/arthur-brooks/
2•paulpauper•12m ago•0 comments

From Tiny Seed to Towering Sequoia: How Purdue Hackers Changed My Life

https://www.jackhogan.me/blog/from-tiny-seed-to-towering-sequoia
3•j0h120311•12m ago•0 comments

93k Layoffs in 2026

https://layoffs.fyi/
3•mgh2•13m ago•0 comments

SEC moves to scrap quarterly reporting requirement

https://www.ft.com/content/3560d1e3-8271-453f-84d6-4a875b9efd98
3•petethomas•16m ago•0 comments

Study to date on school phone bans

https://marginalrevolution.com/marginalrevolution/2026/05/the-best-study-to-date-on-school-phone-...
3•paulpauper•20m ago•1 comments

MCP Steroid – Give AI the whole IDE, not just the files

https://mcp-steroid.jonnyzzz.com/
3•crummy•24m ago•0 comments

The Pope Had to Call Customer Service

https://www.nytimes.com/2026/05/05/us/pope-leo-xiv-bank-customer-service.html
2•osnium123•28m ago•0 comments

Anthropic moral dev said AI overcorrection could address historical injustices

https://www.foxnews.com/politics/anthropics-moral-compass-architect-suggested-ai-overcorrection-c...
3•like_any_other•32m ago•3 comments

Defeating Works by Design's Unpickable Lock [video]

https://www.youtube.com/watch?v=rMi1dIqMwNw
2•zdw•35m ago•0 comments

ParseFlow – Optimize Files for Context

https://docs.parseflow.tech/
4•bollethegoalie•35m ago•0 comments

The First Modern Car Without Hydraulic Brakes Is Headed to Production

https://www.thedrive.com/news/the-first-modern-car-without-hydraulic-brakes-is-headed-to-production
2•voisin•39m ago•1 comments

Show HN: MCP-identity – Per-request cryptographic attestation for MCP servers

https://github.com/mustafabagdatli-git/mcp-identity
4•mustafabagdatli•42m ago•0 comments

Depression Hates a Moving Target

https://twitter.com/anishmoonka/status/2051517996481364144
3•delichon•45m ago•1 comments

Leadly – AI lead generation for small businesses at $9/month

https://willowy-kulfi-0cbaff.netlify.app
3•Leadly•51m ago•1 comments

Apple to Pay $250M to Settle Class Action over Delayed Siri Features

https://www.macrumors.com/2026/05/05/apple-class-action-siri-lawsuit-settlement/
4•mgh2•51m ago•0 comments

Trustworthy JavaScript for the Open Web

https://hacks.mozilla.org/2026/05/trustworthy-javascript-for-the-open-web/
2•nnx•55m ago•0 comments

Linear's MCP server accepts HTTP:// redirect URIs for confidential OAuth clients

https://github.com/korrel-dev/mcp-audits/tree/main/audits/linear
3•issazangana•58m ago•0 comments

Canadian fiddler sues Google after AI wrongly claimed he was a sex offender

https://www.theguardian.com/music/2026/may/05/canadian-ashley-macisaac-fiddler-musician-singer-so...
3•Teever•59m ago•0 comments

Bevy and egui desktop app in production

https://nominal.io/blog/nominal-connect-shipping-realtime-desktop-software-with-rust-bevy-and-egui
2•phsilva•59m ago•0 comments

Sample App – On-Device AI Assistant for Android

https://github.com/ajay-sainy/GemOfGemma
2•qarue•1h ago•0 comments

Skelm – Build AI agents in TypeScript without losing your mind

https://github.com/scottgl9/skelm
2•scottgl•1h ago•0 comments

Lessons on Building MCP Servers

https://taoofmac.com/space/blog/2026/04/29/2341
2•gmays•1h ago•0 comments

StarFighter 16-Inch

https://us.starlabs.systems/pages/starfighter
44•signa11•1h ago•18 comments

Security Engineering Is a Context Problem

https://aseemshrey.in/blog/security-engineering-is-a-context-problem/
3•LuD1161•1h ago•0 comments

Show HN: Library to make your own Windows program launcher (like dmenu)

https://github.com/cristeigabriela/wintheon
2•gabriela_c•1h ago•0 comments

Google is building an AI agent that could be its answer to OpenClaw

https://www.businessinsider.com/google-ai-agent-openclaw-remy-gemini-assistant-2026-5
3•droidjj•1h ago•0 comments

FFmpeg developer calls out OxideAV for AI license laundering of his code

https://github.com/OxideAV/oxideav-magicyuv/issues/3
4•dmitrygr•1h ago•1 comments