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•12mo 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

Researchers in Ireland uncover medieval book in Rome with oldest English poem

https://apnews.com/article/old-english-manuscript-poetry-bede-caedmon-hymn-latin-italy-106769c014...
1•gmays•36s ago•0 comments

Why Multigres has its own connection pooler

https://multigres.com/blog/two-jobs-two-processes
1•gregorvand•1m ago•0 comments

What is Demand Coop and Tech workers make one

https://cahootzcoops.com/blog/what-is-a-demand-coop
1•DeonRob•5m ago•0 comments

Nx Console VS Code extension was the initial access vector in the GitHub breach

https://twitter.com/jeffbcross/status/2057236396658811020
1•vldszn•5m ago•1 comments

What I'd audit on an AI-built SaaS before its first paying customer

https://knbrlo.com/blog/audit-ai-built-saas/
1•knbrlo•7m ago•1 comments

Windows 98½

https://win9-5.com/desktop.html
1•keepamovin•7m ago•0 comments

81yo Grandma Streaming Minecraft to Pay for Grandson's Cancer Swatted

https://www.thegamer.com/grammacrackers-81-year-old-minecraft-youtuber-swatted/
1•kirubakaran•8m ago•0 comments

New dinosaur species Nagatitan chaiyaphumensis

https://www.smithsonianmag.com/smart-news/a-man-spotted-strange-looking-rocks-near-a-pond-in-thai...
1•firasd•10m ago•0 comments

Compromised Nx Console

https://github.com/nrwl/nx-console/security/advisories/GHSA-c9j4-9m59-847w
1•0xedb•10m ago•0 comments

Built for Productivity: What the Data Shows About Kotlin

https://blog.jetbrains.com/kotlin/2026/05/built-for-productivity-what-the-data-shows-about-kotlin/
1•lemonlime227•11m ago•0 comments

Our billing pipeline was suddenly slow

https://blog.cloudflare.com/clickhouse-query-plan-contention/
1•ChicknNuggt•11m ago•0 comments

The AI Client in WordPress 7.0

https://make.wordpress.org/core/2026/03/24/introducing-the-ai-client-in-wordpress-7-0/
1•qainsights•14m ago•1 comments

Show HN: SafeRun – Replay debugging and inline prevention for AI agents 2

2•Tidianez•27m ago•1 comments

Small note on solving x^(n/m) = a

https://12000.org/my_notes/solving_equation/index.htm
1•oliverkwebb•27m ago•0 comments

Stop paying $360/year to access your own email history

https://mailvaulty.com
1•khaledsabae•30m ago•0 comments

Show HN: My custom Statusline for Claude Code (Python wrapper around claudeline)

https://gist.github.com/Reebz/741c5647c860fe0b5214f39d9d887240
1•Reebz•38m ago•0 comments

San José State leaped to No. 2 in national computer science ranking

https://edsource.org/2026/san-jose-state-coding-skills-ranking/758707
2•littlexsparkee•38m ago•0 comments

Ask HN: How to make the best of the Mega IPO/ Index fund debacle?

2•jppope•46m ago•2 comments

Professional Scripted product demos with GSAP with Claude

https://spanthi.com/blog/gsap-choreography/
1•vein05•47m ago•0 comments

Experimenting with graph-based semantic memory for AI agents

https://github.com/AEndrix03/Graft
2•AEndrix03•49m ago•0 comments

Intuit to lay off over 3k employees to refocus on AI

https://techcrunch.com/2026/05/20/intuit-to-lay-off-over-3000-employees-to-refocus-on-ai/
10•wapasta•50m ago•0 comments

Technology creates an illusion of control that risks robbing us of meaning

https://www.punkt.ch/blogs/editorials/punkt-losing-traction
7•James72689•56m ago•1 comments

How not to care online: Survival guide for staying human

https://www.jpost.com/health-and-wellness/article-884204
1•heavydevil•56m ago•0 comments

White House briefs AI firms on plans for model review

https://www.reuters.com/legal/litigation/white-house-briefs-ai-firms-plans-model-review-informati...
6•petethomas•1h ago•0 comments

Did AI Game the Commonwealth Prize?

https://unherd.com/2026/05/invasion-of-the-literary-bots/
1•627467•1h ago•1 comments

LAN-LOK: The Antarctic DOS Sabotage Game Lost for 34 Years

https://alphapixeldev.com/lan-lok-the-antarctic-dos-sabotage-game-lost-for-34-years-part-1/
1•miffe•1h ago•0 comments

What Models? Helps Match Local AI Models to Your Hardware

https://whatmodelscanirun.com/
1•javatuts•1h ago•0 comments

SecretScanner is an open-source tool for discovering passwords, API, tokens

https://github.com/deepfence/SecretScanner
2•javatuts•1h ago•0 comments

Open-source Discord alternative GoofCord has been released

https://github.com/Milkshiift/GoofCord
4•javatuts•1h ago•0 comments

The hype literacy toolkit for journalists

https://akademie.dw.de/hype-literacy/
2•johnshades•1h ago•0 comments