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•6mo 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•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Cocoon – Confidential Compute Open Network by Telegram

https://cocoon.org
1•alebaffa•1m ago•0 comments

Aswath Damodaran – Laws of Valuation: Revealing the Myths and Misconceptions [video]

https://www.youtube.com/watch?v=c20_S-QgvsA
1•kamaraju•2m ago•0 comments

SemiAnalysis – TPUv7: Google Takes a Swing at the King

https://www.patreon.com/posts/144767388
1•gmays•2m ago•0 comments

How Prompt Caching Works – Paged Attention and Automatic Prefix Caching

https://sankalp.bearblog.dev/how-prompt-caching-works/
1•mji•3m ago•0 comments

Scientology-Linked Startup Dream Exchange Loses Bid for SEC License

https://www.wsj.com/finance/regulation/dream-exchange-sec-license-rejection-scientology-a7c64ce4
1•JumpCrisscross•4m ago•0 comments

Nonsurgical treatment shows promise for targeted seizure control

https://medicalxpress.com/news/2025-11-nonsurgical-treatment-seizure.html
1•PaulHoule•4m ago•0 comments

Skill Bank – AI agents with semantic discovery and memory/learning

https://github.com/MauricioPerera/Skill-Bank
1•rckflr•4m ago•1 comments

Show HN: Furnace – the ultimate chiptune music tracker

1•hilti•8m ago•0 comments

One jobserver to rule them all

https://blogs.gentoo.org/mgorny/2025/11/30/one-jobserver-to-rule-them-all/
1•todsacerdoti•9m ago•0 comments

Jargon.txt (1988)

https://www.dourish.com/goodies/jargon.html
2•swatson741•10m ago•0 comments

Show HN: Ode, a self-hosted app for writers who love the craft

https://github.com/DeepanshKhurana/ode
2•deepanshkhurana•10m ago•0 comments

The AI bubble isn't new – Karl Marx explained it nearly 150 years ago

https://theconversation.com/the-ai-bubble-isnt-new-karl-marx-explained-the-mechanisms-behind-it-n...
8•devonnull•19m ago•0 comments

I built Pinpoint: a daily mini-game for discovering your city

https://imperfectionist.substack.com/p/how-i-built-pinpoint
1•bibekg•32m ago•0 comments

Show HN: CurioQuest – A simple web trivia/fun facts game

https://curioquest.fun/
1•curioquest•34m ago•0 comments

Antimatter Development Program

https://caseyhandmer.wordpress.com/2025/11/26/antimatter-development-program/
1•surprisetalk•47m ago•0 comments

Just ten species make up almost half the weight of all wild mammals

https://ourworldindata.org/wild-mammal-biomass-dominance
3•surprisetalk•47m ago•1 comments

When Was TidalCycles Born?

https://slab.org/2025/11/25/when-was-tidalcycles-born/
2•surprisetalk•47m ago•0 comments

It’s been a very hard year

https://bell.bz/its-been-a-very-hard-year/
15•surprisetalk•47m ago•2 comments

What's Happening with Hypermode?

1•sthala•49m ago•0 comments

Google Antigravity Deletes D Drive

https://mastodon.gamedev.place/@bastardsheep@aus.social/115641546248437052
42•jay_kyburz•55m ago•10 comments

Upgrade a ThinkPad 701c in 2023. (2023)

https://old.reddit.com/r/thinkpad/comments/185y4m6/upgrade_a_thinkpad_701c_in_2023/
1•mitthrowaway2•1h ago•0 comments

The Hierarchy of Work Complexity Is Inescapable (Even at Buurtzorg)

https://synexia.substack.com/p/the-hierarchy-of-work-is-inescapable
2•asplake•1h ago•0 comments

Linux 6.18 Released

https://lore.kernel.org/lkml/CAHk-=whnC+hRftevTLeVs3tyyqwn+7un=jUES2-WX+pZhDdKNw@mail.gmail.com/T/#u
6•jrepinc•1h ago•1 comments

Arch Linux-based EndeavourOS releases Ganymede

https://endeavouros.com/news/the-long-wait-is-over-ganymede-has-arrived/
2•jrepinc•1h ago•0 comments

Show HN: BirdWrite – The AI Engine for World-Class Content

https://birdwrite.vercel.app/
2•devanimecx•1h ago•1 comments

TSMC Overseas Fabs – A Success?

https://newsletter.semianalysis.com/p/tsmc-overseas-fabs-a-success
1•emschwartz•1h ago•0 comments

Show HN: Tera.fm – Listen to Hacker News instead of reading it

https://tera.fm/
2•digi_wares•1h ago•1 comments

SmartTube Compromised

https://www.aftvnews.com/smarttubes-official-apk-was-compromised-with-malware-what-you-should-do-...
8•akersten•1h ago•0 comments

A speculative framework for thinking about civilization resolution in the AI era

https://ontomesh.org/civilization-resolution-png-era.html
2•nettalk83•1h ago•1 comments

Waymo Has a Charging Problem

https://insideevs.com/news/780391/waymo-charging-depot-santa-monica/
2•voxadam•1h ago•1 comments