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

China builds a record-breaking hypergravity machine to compress space & time

https://www.google.com/url?q=https://www.scmp.com/news/china/science/article/3338193/china-builds...
1•mnming•1m ago•0 comments

Windows 11 Outperforming Linux on an Intel Arrow Lake H Laptop

https://www.phoronix.com/review/windows-beats-linux-arl-h
2•tuananh•3m ago•0 comments

Deltax: A non-decision AI governance framework with explicit stop conditions

https://zenodo.org/records/18100154
1•DELTA-X•4m ago•1 comments

Bluetooth Headphone Jacking: A Key to Your Phone [video]

https://media.ccc.de/v/39c3-bluetooth-headphone-jacking-a-key-to-your-phone
1•AndrewDucker•6m ago•0 comments

V programming language version 0.5 released

https://github.com/vlang/v/releases/tag/0.5
1•hggh•8m ago•0 comments

Show HN: 1seed – Derive all your crypto keys from a single seed

https://github.com/oeo/1seed
1•genesishash•8m ago•0 comments

Show HN: BakwasLogin – A user-hostile login with physics-based password entry

https://www.bakwaslogin.app/
1•bhavesh_kukreja•15m ago•0 comments

IQuest-Coder: Open model w/ 81.4% on SWEBench

https://iquestlab.github.io/
5•denysvitali•16m ago•0 comments

Role of psychological strengths in positive life outcomes in adults with ADHD

https://www.cambridge.org/core/journals/psychological-medicine/article/role-of-psychological-stre...
1•bookofjoe•16m ago•0 comments

Bulk image conversion client-side using Web Workers

1•lemongravity•16m ago•0 comments

Navigating Moats in the AI Transition

https://shaokang.substack.com/p/navigating-moats-in-the-ai-transition
1•Wraecca•19m ago•0 comments

Facebook is testing a link-posting limit for professional accounts and pages

https://techcrunch.com/2025/12/17/facebook-is-testing-a-link-posting-limit-for-professional-accou...
2•austinallegro•20m ago•0 comments

I rebooted my social life

https://takes.jamesomalley.co.uk/p/this-might-be-oversharing
3•edent•22m ago•0 comments

Can a Commodore 1541 disk drive be used as a general purpose computer? [video]

https://www.youtube.com/watch?v=6loDwvG4CP8
2•amichail•22m ago•0 comments

China's CXMT eyes $4.2B Shanghai listing to fund DRAM expansion

https://www.reuters.com/world/asia-pacific/chinas-cxmt-eyes-42-billion-shanghai-listing-fund-dram...
1•ksec•30m ago•1 comments

Rust–: Rust without the borrow checker

https://github.com/buyukakyuz/rustmm
3•ravenical•30m ago•3 comments

The Tech We've Lost in 2025

https://www.cnet.com/tech/the-tech-weve-lost-in-2025/
1•taubek•31m ago•1 comments

Show HN: Mailcow/Rspamd kept missing obvious spam so I built my own email filter

https://email-filter.ai/
1•rodoni•32m ago•0 comments

Free AI Stamp Generator and Online Stamp Maker

https://stampgenerator.net/
1•qweasdzxc111111•33m ago•0 comments

Wicked Engine: 3D engine with modern graphics

https://github.com/turanszkij/WickedEngine
1•ksec•34m ago•0 comments

Show HN: Awesome Symbian

1•catstor•34m ago•1 comments

Crown: The Flexible Game Engine

https://www.crownengine.org/
1•ksec•35m ago•0 comments

Gnashing of Teeth

https://www.250bpm.com/p/gnashing-of-teeth
1•tosh•48m ago•0 comments

How did the world change in 2025?

https://frontier2025.netlify.app/
1•que3216•49m ago•0 comments

Show HN: Distill – Remove redundant RAG context in 12ms, no LLM calls

1•sidk24•50m ago•0 comments

Ribosome

https://sustrik.github.io/ribosome/
1•tosh•53m ago•0 comments

Rectal Oxygenation Could Save Your Life

https://hackaday.com/2025/12/31/rectal-oxygenation-could-save-your-life-one-day/
3•user_7832•53m ago•1 comments

Worlds largest electric ship launched by Tasmanian boatbuilder

https://www.theguardian.com/australia-news/2025/may/02/hull-096-worlds-largest-electric-ship-batt...
10•aussieguy1234•54m ago•2 comments

Pdf2epub

https://github.com/overcuriousity/pdf2epub
1•anewhnaccount2•54m ago•0 comments

BBC Sound Effects

https://sound-effects.bbcrewind.co.uk/
1•memalign•55m ago•0 comments