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

MetaImGui

https://github.com/andynicholson/MetaImGUI
1•andynicholson•1m ago•0 comments

OpenAI Is Doing Everything Poorly

https://www.theatlantic.com/technology/2026/03/sora-openai-identity-crisis/686544/
1•JumpCrisscross•4m ago•0 comments

A Phone-Free Childhood? One Irish Village Is Making It Happen

https://www.nytimes.com/2026/03/25/realestate/ireland-cell-phones-children.html
1•JumpCrisscross•5m ago•0 comments

IPhey: Fingerprinting and IP Checker

https://momoproxy.com/blog/iphey
1•udpchannel•6m ago•0 comments

2023 Or, Why I am Not a Doomer

https://www.hyperdimensional.co/p/2023
1•sebg•7m ago•0 comments

Treat Errors as Warnings

https://thejoylab.ai/p/ewarning
1•xerxes249•8m ago•0 comments

In Math, Rigor Is Vital. But Are Digitized Proofs Taking It Too Far?

https://www.quantamagazine.org/in-math-rigor-is-vital-but-are-digitized-proofs-taking-it-too-far-...
1•isaacfrond•8m ago•0 comments

LetPlant GreenFocus Pomodoro Timer

https://chromewebstore.google.com/detail/letplant-greenfocus-pomod/faafihopigjlmphlldphfgdgagioejmk
1•doener•9m ago•0 comments

Supreme Court rejects Sony's attempt to kick music pirates off the Internet

https://arstechnica.com/tech-policy/2026/03/supreme-court-rejects-sonys-attempt-to-kick-music-pir...
4•isaacfrond•10m ago•0 comments

We cache too much

https://websmith.studio/blog/we-cache-too-much/
1•titanslayer•10m ago•0 comments

Mazda may have found the apex in ICE design with the Skyactiv-Z

https://newatlas.com/automotive/mazda-skyactiv-z/
4•breve•12m ago•0 comments

Show HN: Imrobot – Reverse CAPTCHA that verifies AI agents, not humans

https://github.com/leopechnicki/im_robot
1•leo_pechnicki•12m ago•0 comments

Ireland's first mobile video call via satellite is made

https://www.rte.ie/news/business/2026/0326/1565222-satellite-call-ireland/
1•austinallegro•12m ago•0 comments

Why Sora Failed: $15M/day inference cost vs. $2.1M lifetime revenue

https://www.revolutioninai.com/2026/03/%20chatgpt-gpt-54-mini-silent-switch-march-2026.html
2•vinodpandey7•12m ago•0 comments

Running Sonnet 4.5 Level LLM's on Your Own Servers: Kimi K2.5 Economics

https://twitter.com/CDerinbogaz/status/2037101565249487079
1•textcortex•12m ago•0 comments

MSA on memory issues with AI-a [pdf]

https://github.com/EverMind-AI/MSA/blob/main/paper/MSA__Memory_Sparse_Attention_for_Efficient_End...
1•Liriel•14m ago•0 comments

Vim_gym – Practice Vim by competing against other people

https://www.vimgym.app/
1•Aaronmacaron•15m ago•1 comments

Why pylock.toml includes digital attestations

https://snarky.ca/why-pylock-toml-includes-digital-attestations/
1•lumpa•16m ago•0 comments

Paper: Reducing hallucination in English–Hindi LLMs using citation grounding

https://arxiv.org/abs/2603.18911
1•vedantpandya•18m ago•0 comments

Is there any way to remove an already-pushed commit from GitLab?

1•bluewhalecove•18m ago•1 comments

Engineers do get promoted for writing simple code

https://www.seangoedecke.com/simple-work-gets-rewarded/
3•lalitmaganti•23m ago•0 comments

Intel Arc Pro B70 and Arc Pro B65 GPUs Bring 32GB of RAM to AI and Pro Apps

https://www.tomshardware.com/pc-components/gpus/intel-arc-pro-b70-and-arc-pro-b65-gpus-bring-32gb...
4•throwaway270925•23m ago•1 comments

The Inside Story of the Greatest Deal Google Ever Made: Buying DeepMind

https://www.wsj.com/tech/ai/deepmind-google-demis-hassabis-5bd6de54
1•bookofjoe•23m ago•1 comments

SidClaw – The approval layer for AI agents (open-source)

https://github.com/sidclawhq/platform
1•sidclaw•23m ago•0 comments

Scientists heated a Rocky Mountain wildlife meadow by 2C?

https://www.theguardian.com/environment/2026/mar/25/flowers-heated-2c-meadow-climate-crisis-exper...
1•robaato•25m ago•0 comments

Show HN: An x402 gateway for buying a finished local business website

https://boosterpack.xyz/x402
2•Martibis•25m ago•0 comments

Show HN: Neural DNA – 258 params that grow network topology

https://github.com/tejassudsfp/ndna
1•tejassuds•32m ago•0 comments

Searching for Fast Astronomical Transients in Archival Photographic Plates

https://arxiv.org/abs/2603.20407
1•solarist•32m ago•0 comments

Microsoft's Rust Training

https://github.com/microsoft/RustTraining
2•tayadeamit•35m ago•0 comments

2k Words Becomes One Word – a short story co-created with Claude Opus

https://medium.com/@cmitre/how-2-000-words-becomes-one-word-5365cf8df07b
2•ceemite•39m ago•0 comments