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

Show HN: WebGPU and WebAssembly SIMD SHA‑256 PoW Miner

https://etherdream.github.io/hash-miner/
1•etherdream•5m ago•0 comments

CW Radio Signals Require Fix Faulty Equipment on Boeing 787s

https://www.paddleyourownkanoo.com/2026/03/14/ham-radio-enthusiasts-land-u-s-airlines-with-8-mill...
1•wglb•6m ago•0 comments

The Brain Stores Quadruples: Why Context Is the Missing Primitive in AI

https://gizmohan.substack.com/p/agents-as-labor
1•iamthedruid•9m ago•0 comments

Anthropic Courses

https://anthropic.skilljar.com/
1•vinhnx•14m ago•1 comments

Show HN: Signet.js – A minimalist reactivity engine for the modern web

https://github.com/sntran/signet.js/
2•sntran•15m ago•1 comments

Factorio Any% Tool-Assisted Speedrun in 57 Minutes [video]

https://www.youtube.com/watch?v=fkmRd5uJoKI
1•bozbalci•18m ago•0 comments

Social Media, Reset

https://www.meetzeta.com/
6•novateg•20m ago•0 comments

Earth's first major extinction was worse than we thought

https://www.science.org/content/article/earth-s-first-major-extinction-was-worse-we-thought
2•thunderbong•23m ago•0 comments

Treasure hunter freed from jail after refusing to turn over shipwreck gold

https://www.bbc.com/news/articles/cg4g7kn99q3o
8•tartoran•25m ago•1 comments

CloudPipe – download anything to Google Drive

https://cloudpipe.app
2•darkhasi•28m ago•1 comments

Am I a Forward Deployed Engineer? Maybe. Take the Quiz

https://wanjiko.substack.com/p/am-i-a-forward-deployed-engineer
1•contextwindow•32m ago•1 comments

DeerFlow 2.0: open-source SuperAgent harness that researches, codes, creates

https://github.com/bytedance/deer-flow
2•nateb2022•34m ago•0 comments

Add all your GitHub stars on your readme, autoupdating

https://starsum.jia.build/
1•Audgeviolin07•38m ago•0 comments

A Superpower Goes Offline

https://www.politico.com/news/2026/03/14/russias-self-inflicted-communication-crisis-00827197
2•mitchbob•44m ago•0 comments

Memegen Pro

https://memegen.pro/
1•decimalenough•44m ago•0 comments

Why do we need lots of Nuclear power long term?

https://www.gridstatus.io/live/ercot
1•chris222•47m ago•2 comments

$3k sequencing rescue dog's mast cell tumor DNA

https://twitter.com/IterIntellectus/status/2032858964858228817
3•gmays•47m ago•1 comments

Cats May Hold the Key to Treating Human Cancer

https://scitechdaily.com/cats-may-hold-the-key-to-treating-human-cancer/
2•y1n0•47m ago•0 comments

Accessibility and the AI autumn (2020) [video]

https://www.youtube.com/watch?v=PJE_gnTreBo
1•azhenley•50m ago•0 comments

Great Ideas in Computer Architecture

https://www.d.umn.edu/~gshute/arch/great-ideas.html
4•b-man•1h ago•0 comments

Estimating $π$ with a Coin

https://arxiv.org/abs/2602.14487
2•Anon84•1h ago•0 comments

Show HN: Korupedia – a knowledge base maintained by AI agents, not humans

https://korupedia.com
2•benryanx•1h ago•6 comments

What role is cyber warfare played in Iran?

https://www.bbc.com/news/articles/c5yr0576ygvo
1•y1n0•1h ago•0 comments

The war on Iran is about China

https://sharptext.net/2026/loud-and-clear/
4•qwikhost•1h ago•0 comments

China's Winning Energy Strategy

https://www.semafor.com/article/03/10/2026/chinas-winning-energy-strategy
2•KnuthIsGod•1h ago•0 comments

Open-Source Minecraft Web Client

https://mcraft.fun/
3•LelouBil•1h ago•0 comments

US solar installations fall as Trump policies hit sector

https://www.semafor.com/article/03/12/2026/us-solar-installations-fall-as-trump-policies-hit-sector
6•KnuthIsGod•1h ago•0 comments

ProfitPlay – Open prediction market arena for AI agents

https://github.com/jarvismaximum-hue/profitplay-starter
2•jarvis_maximum•1h ago•0 comments

Getting started with Claude for software development

https://steveklabnik.com/writing/getting-started-with-claude-for-software-development/
2•vinhnx•1h ago•0 comments

Clawme-Personal AI Assistant Built for OpenClaw

https://clawme.org/
2•RyanMu•1h ago•0 comments