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

Free Textbook on Engineering Thermodynamics

https://thermodynamicsbook.com/
2•2DcAf•4m ago•1 comments

China surpasses U.S. in research spending

https://www.upi.com/Voices/2026/04/24/China-surpasses-United-States-in-research-spending/14317770...
1•Bondi_Blue•4m ago•0 comments

Show HN: ReadTube – Turn YouTube subscriptions into a personal Substack

https://www.read.tube/
1•tuliren•5m ago•0 comments

Ed Holding: A 'Barbaric' Problem in American Hospitals Is Only Getting Bigger

https://kffhealthnews.org/health-industry/emergency-room-ed-boarding-hospital-beds-long-waits-cri...
1•randycupertino•6m ago•0 comments

Utah data center will generate and consume more power than state, nears approval

https://www.sltrib.com/news/2026/04/25/hyperscale-data-center-may-be/
1•Jimmc414•7m ago•0 comments

Trump's Canada trade war hits Jack Daniel's/Jim Beam with devastating $143M loss

https://www.fastcompany.com/91531349/trumps-canada-trade-war-hits-jack-daniels-jim-beam-devastati...
2•dj_rock•8m ago•0 comments

Mathematically Optimized Typing

https://cadence.theory-a.com/
1•notShabu•8m ago•0 comments

Kevin Weil and Bill Peebles exit OpenAI as company continues to shed side quests

https://techcrunch.com/2026/04/17/kevin-weil-and-bill-peebles-exit-openai-as-company-continues-to...
1•gmays•8m ago•0 comments

Show HN: SRT-Adapter: 0.99 AUROC, perplexity win and 16.7× recall (0.19%)

https://huggingface.co/RiverRider/srt-adapter-v8a
1•spacebacon•11m ago•0 comments

Project Deal: Our Claude-Run Marketplace Experiment – Anthropic

https://www.anthropic.com/features/project-deal
1•ericol•15m ago•0 comments

Linux May Drop Old Network Drivers Due to Burden of AI-Driven Bug Reports

https://www.phoronix.com/news/Linux-Old-Network-AI
1•birdculture•15m ago•0 comments

Show HN: Semble – Fast code search for agents with near-transformer accuracy

https://github.com/MinishLab/semble
3•stephantul•21m ago•0 comments

TraceFree – unified Apt/Snap/Flatpak package manager with ghost file detection

https://github.com/somranimehdi/TraceFree
1•Somosranos•21m ago•0 comments

Lessons from Building Multiplayer Browsers

https://www.alejandro.pe/writing/sail-muddy-lessons
1•alejandrohacks•22m ago•1 comments

ASML: The Most Complex Machine

https://worksinprogress.co/issue/the-worlds-most-complex-machine/
1•dionysou•25m ago•0 comments

Scientists believe birds' skulls hold clues to inner lives of long-extinct dinos

https://www.theguardian.com/science/2026/apr/26/scientists-believe-birds-skulls-hold-clues-to-inn...
1•hkhn•26m ago•0 comments

Tell HN: Claude Code is unable to respond to this request

1•hmokiguess•28m ago•2 comments

What Is Dyslexia?

https://www.whatisdyslexia.org/
1•hkhn•28m ago•0 comments

Dyslexic thinking made me the scientist I am today. If we could harness its

https://www.theguardian.com/commentisfree/2026/apr/25/dyslexic-thinking-scientist-neurodiversity-...
2•hkhn•29m ago•0 comments

Show HN: Text Trace – Keynote-style SVG text trace animations for the web

https://github.com/Jannchie/text-trace
1•jannchie•29m ago•0 comments

List of personal sites that host Wander Console, a tool to explore the small web

https://susam.codeberg.page/wcn/
1•susam•30m ago•1 comments

Startups only remember backups after the crash

https://orchidfiles.com/backups-after-crash/
1•theorchid•31m ago•0 comments

GPT Image Generation Models Prompting Guide

https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide
1•gmays•36m ago•0 comments

Anthropic created a test marketplace for agent-on-agent commerce

https://techcrunch.com/2026/04/25/anthropic-created-a-test-marketplace-for-agent-on-agent-commerce/
1•Brajeshwar•36m ago•0 comments

Musk Touts Universal Income as Remedy to AI-Driven Unemployment

https://www.forbes.com/sites/siladityaray/2026/04/17/elon-musk-touts-universal-income-as-remedy-t...
1•geox•39m ago•1 comments

Pratt parsing is a black box

https://vinipsmaker.github.io/blog/blog/pratt-parsing-is-a-black-box/
1•vinipsmaker•43m ago•0 comments

A high-performance 2D graphics painter that use SDL3 GPU API

https://github.com/n67094/SDL_gp
1•n67094•45m ago•0 comments

Query neural network weights like a graph database

https://github.com/chrishayuk/larql
1•james_marks•52m ago•0 comments

Network File Systems on Macs

https://eclecticlight.co/2026/04/25/explainer-network-file-systems/
1•chmaynard•54m ago•0 comments

Ask HN: How I find a job where what is needed is solid code, not firefighting?

3•speeder•57m ago•1 comments