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

SydBox – pank rock Rust scalpel alternative to Bubblewrap

https://gitlab.exherbo.org/sydbox/sydbox
1•dlahoda•44s ago•0 comments

GoldenEye (N64) has a fully-functional ZX Spectrum 48x emulator built into it

https://www.therwp.com/forums/showthread.php?t=48139
1•ForHackernews•2m ago•0 comments

How to make spamming us uncomfortable for LinkedIn and friends

1•zx8080•4m ago•0 comments

How Humans Became Microplastic

https://unherd.com/2024/11/how-humans-became-microplastic/
1•voxleone•4m ago•0 comments

Pi-Mono Coding Agent

https://github.com/badlogic/pi-mono
1•tin7in•5m ago•0 comments

Aura Farm Prompt – Free Aura Farm Prompts for ChatGPT, Gemini and AI Art

https://aurafarmprompt.org
1•john_mayor•5m ago•0 comments

Sadiq Khan to urge ministers to act over 'colossal' impact of AI on London jobs

https://www.theguardian.com/politics/2026/jan/15/sadiq-khan-to-urge-ministers-to-act-over-colossa...
2•veltas•12m ago•0 comments

We analyzed 3K K8s clusters: one config line costs millions

https://wozz.io/blog/kubernetes-memory-overprovisioning-study-2026
1•wozzio•13m ago•0 comments

Solving the Electroporation Bottleneck

https://press.asimov.com/articles/electroporation
1•mailyk•13m ago•0 comments

SRT Server Live Streaming Software

https://www.red5.net/srt-streaming/
1•mondainx•18m ago•0 comments

Cardputer uLisp Machine (2024)

http://www.ulisp.com/show?52G4
1•tosh•18m ago•0 comments

People who built Wikipedia, technically (2021)

https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2021-01-31/Technology_report
1•todsacerdoti•20m ago•0 comments

X says Grok now blocks undress photo edits where theyre illegal

https://apnews.com/article/grok-musk-deepfake-nudification-abuse-f0d62ec68576dcfe203cada2424bd107
1•criexe•21m ago•0 comments

Show HN: Setflow – Create harmonically mixed DJ sets from your Rekordbox library

https://www.setflow.app/
1•stuartevansuk•23m ago•0 comments

Banning Things for Other People Is Easy

https://dogdogfish.com/blog/2026/01/14/banning-things-for-other-people/
2•matthewsharpe3•29m ago•0 comments

An Interview with United CEO Scott Kirby About Tech Transformation

https://stratechery.com/2026/an-interview-with-united-ceo-scott-kirby-about-tech-transformation/
1•feross•29m ago•1 comments

Show HN: Leaftide – Garden planner with climate-aware scheduling (Django/Htmx)

https://leaftide.com/
1•JoaoW•30m ago•0 comments

Nearly 5M Accounts Removed Under Australia's New Social Media Ban

https://www.nytimes.com/2026/01/15/world/australia/social-media-ban-australia.html
1•donohoe•31m ago•1 comments

Adding Dependency Injection to PdfDocument in iText

https://kb.itextpdf.com/itext/adding-dependency-injection-to-the-pdfdocument-cla
3•whizzx•32m ago•0 comments

Three from the same family killed in Iran

https://www.iranintl.com/en/202601155532
1•ukblewis•33m ago•0 comments

Chinese Universities Surge in Global Rankings as U.S. Schools Slip

https://www.nytimes.com/2026/01/15/us/harvard-global-ranking-chinese-universities-trump-cuts.html
5•mynti•35m ago•2 comments

Show HN: Merge Excel Files

https://www.mergeexcelfiles.online/
1•foxiren•37m ago•0 comments

I Failed Your Coding Test. I'd Fail It Again

https://medium.com/@danielbentes/i-failed-a-coding-interview-heres-why-i-m-not-going-back-afdc4d9...
2•fornbogi•38m ago•2 comments

Podcast: Chinese EVs are transforming the auto industry

https://podcasts.apple.com/us/podcast/chinas-ev-boom-with-tu-le/id1864408706?i=1000745265483
3•hunglee2•46m ago•1 comments

Steamosaic: Generate a mosaic of your Steam account

https://steamosaic.com/
1•delduca•49m ago•0 comments

LongCat ZigZag Attention

https://www.k-a.in/LoZA.html
2•everlier•49m ago•1 comments

Full AI Music and Video

https://www.youtube.com/watch?v=YxGJLbbWZdc
1•spotlayn•51m ago•0 comments

Notepad.pub

https://notepad.pub
2•jbrooksuk•55m ago•0 comments

Hand-stitched Indian ship arrives in Oman to rousing welcome

https://www.bbc.com/news/articles/cwyn15110gvo
2•breve•56m ago•1 comments

Show HN: An AI assistant you can text via Apple satellite messaging

https://olly.bot/travel.html
1•mmoustafa•59m ago•1 comments