frontpage.
newsnewestaskshowjobs

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•1y 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

Why do you need freedom?

https://geohot.github.io//blog/jekyll/update/2026/10/01/why-do-you-need-freedom.html
1•smilelamp•2m ago•0 comments

Arc and Mutex in Rust

https://itsallaboutthebit.com/arc-mutex/
1•auraham•3m ago•0 comments

Arc<Mutex<_>> in Rust

https://aeshirey.github.io/code/2020/12/23/arc-mutex-in-rust.html
1•auraham•3m ago•0 comments

Nibbi

https://www.temeculadsp.com/nibbi
1•johnwheeler•4m ago•0 comments

AI research is dead, long live AI

https://kylrth.com/post/ai-research-is-dead/
1•dddddaviddddd•5m ago•0 comments

Systems: Sales Coaching Platform Which Changes Behaviors

https://10systems.xyz
1•Assane_D•9m ago•0 comments

Tennessee inmate still alive after being administered two lethal injections

https://www.nbcnews.com/news/us-news/ahead-rare-execution-lone-woman-tennessee-death-row-says-pea...
3•techolic•11m ago•1 comments

Mortal Knesset: Twelve contenders. One seat of power

https://mortalknesset.liad0205.workers.dev/
1•escargot•11m ago•0 comments

Can anyone promote my extension on 50/50 profit sharing basis?

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
1•digitaShida•11m ago•1 comments

PSSA: A non-transformer language model written from scratch in Rust

https://ai-news-site-cyan.vercel.app/articles/2026-09-30-pssa-a-non-transformer-language-model-wr...
1•qrify_app•13m ago•0 comments

Thoughts on AI

https://medium.com/@dhillonravi1983/thoughts-on-ai-1e1400f9fe4f
1•dhillonrav1983•15m ago•0 comments

Gboard Conveyor Belt Version [video]

https://www.youtube.com/watch?v=DAn34l_YrUM
1•caseyross•15m ago•0 comments

Lights, Camera, Attack: Exploiting Temporal HDR Fusion with Pulsed Light

https://arxiv.org/abs/2609.37742
1•sbulaev•18m ago•0 comments

Show HN: A 311 byte Klotski solver in C++

https://github.com/Dream-World-Coder/depuzzled
1•midnight_dream•19m ago•0 comments

Tokens Written, Tokens Read

https://hci.prof/blog/
1•hciprof•19m ago•0 comments

When Did You Last Write Code?

https://timleland.com/when-did-you-last-write-code/
3•TimLeland•26m ago•0 comments

What is going on with ceiling fans

https://mcmansionhell.com/post/829127919552151552/what-is-going-on-with-ceiling-fans
3•colinprince•32m ago•0 comments

What managing emergencies at Burning Man teaches about tech incident management

https://greatcircle.com/blog/2026/09/29/burning-man-incident-management/
3•ea016•33m ago•0 comments

Google Grapples with Employee Skepticism About New Gemini Model

https://finance.yahoo.com/technology/ai/articles/google-grapples-employee-skepticism-gemini-19524...
2•theanonymousone•33m ago•0 comments

"Revize., The Government Website Expert"

https://www.revize.com/projects/
2•nycdatasci•33m ago•1 comments

The 101 Plays Itself

https://jayjudah.com/101/
3•gregsadetsky•42m ago•0 comments

Starcloud White Paper [pdf]

https://starcloudinc.github.io/wp.pdf
3•duck•44m ago•1 comments

Ask HN: If AI took your job tomorrow, what is your plan?

2•rogerrogerr•45m ago•2 comments

Flet agent got eyes and ears

https://flet.dev/blog/flet-agent-got-eyes-and-ears/
3•appveyor•48m ago•0 comments

The Six-Year Quest to Find the Mystery Woman in an 18th-Century Painting

https://www.wsj.com/arts-culture/fine-art/eleonora-painting-ontario-324850bc
1•gmays•48m ago•0 comments

A local Workday job agent – rule-based resume tailoring, no AI

https://github.com/daliparthi/personal-job-agent
1•teeskay•53m ago•0 comments

A Bombadier beetle, Brachinus crepitans, found at Hampshire, England, in 2023

https://collections.hampshireculture.org.uk/object/insect-coleoptera-beetle-11
1•thunderbong•54m ago•0 comments

Show HN: DOMolition – turn any web page into a destructible platformer

https://domolition.chirkut.xyz/
1•pokemongo11•54m ago•0 comments

Clanker Church – The Saw Test

https://clanker.church/
3•tossit444•56m ago•0 comments

Is sandboxing sufficient to contain rogue agents?

https://blog.cryptographyengineering.com/2026/09/30/is-sandboxing-sufficient-to-contain-rogue-age...
1•zdw•57m ago•0 comments