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

Solving Automata Cam Profiling with Grasshopper

https://www.youtube.com/watch?v=grgIhw1YbHw
1•deoxykev•55s ago•0 comments

Everyone Is Oppressed, Especially the Powerful

https://gilpignol.substack.com/p/everyone-is-oppressed-especially
1•light_triad•1m ago•0 comments

Hyundai to supply 50k vehicles to Waymo as physical AI move accelerates

https://www.kedglobal.com/future-mobility/newsView/ked202602100001
1•xnx•2m ago•0 comments

Community Living as a Solution to Late Stage Capitalism

https://spidgorny.medium.com/community-living-as-a-solution-to-late-stage-capitalism-8975205f02d2
1•depidsvy•2m ago•0 comments

Flicker: Upload Videos for Free

https://joinflicker.pages.dev/
1•telui•3m ago•1 comments

Ball Lightning Phenomenon

https://en.wikipedia.org/wiki/Ball_lightning
1•JumpinJack_Cash•5m ago•0 comments

Chrome Announced WebMCP Integration

https://docs.google.com/document/d/1rtU1fRPS0bMqd9abMG_hc6K9OAI6soUy3Kh00toAgyk/edit
3•zkitty•8m ago•0 comments

FDA refuses to review Moderna's mRNA flu vaccine

https://arstechnica.com/health/2026/02/fda-refuses-to-review-modernas-mrna-flu-vaccine/
3•sklargh•8m ago•0 comments

Cloudflare forecasts annual sales above estimates as AI drives cloud demand

https://www.reuters.com/business/cloudflare-forecasts-annual-sales-above-estimates-ai-drives-clou...
2•rfv6723•14m ago•0 comments

RAG and Data Boundaries in Multi-Tenant Systems

1•arthit-pkg•16m ago•0 comments

2026 Is the Year of Serious AI Engineering

https://stefano.chiodino.uk/posts/2026-02-10-2026-is-the-year-of-serious-ai-engineering/
1•StefanoC•16m ago•0 comments

The future of coding agents is vertical integration (and why ACP matters)

https://tidewave.ai/blog/the-future-of-coding-agents-is-vertical-integration
1•vinhnx•16m ago•0 comments

Built a Python Dependency Audit Tool Because Vulnerability Lists Weren't Enough

https://github.com/0x5A65726F677275/AuditDeps
1•zerogru0x00•17m ago•1 comments

Elon Musk's xAI loses second cofounder in 48 hours

https://www.businessinsider.com/elon-musk-xai-loses-second-cofounder-jimmy-ba-2026-2
4•spenvo•23m ago•1 comments

Google Chrome 145 Released with JPEG-XL Image Support

https://www.phoronix.com/news/Chrome-145-Released
3•lawrencejgd•24m ago•0 comments

Sodium Ion Battery Puncture Test [video]

https://www.youtube.com/watch?v=DCRXWkeoEXs
2•olgs•28m ago•0 comments

Scientists reimagine a forgotten battery design from Thomas Edison

https://newsroom.ucla.edu/releases/how-ucla-scientists-helped-reimagine-a-forgotten-battery-desig...
1•geox•28m ago•0 comments

Rivian R2: Electric Mid-Size SUV

https://rivian.com/r2
2•socialcommenter•32m ago•0 comments

Show HN: ScanDo – A zero-UI camera that predicts your next action locally

https://play.google.com/store/apps/details?id=jp.joinclass.scando&hl=en_US
1•kyoagun•32m ago•0 comments

Open Climate Risk

https://carbonplan.org/research/climate-risk
1•coloneltcb•33m ago•0 comments

The insane biology of: The saltwater crocodile [video]

https://www.youtube.com/watch?v=Z5rCogD4e2k
1•teleforce•36m ago•0 comments

Google Chrome: WebMCP is available for early preview

https://developer.chrome.com/blog/webmcp-epp
2•nthypes•37m ago•0 comments

Show HN: NameToGradient – deterministic gradients from text input

https://nametogradient.com/
1•RndmNode•38m ago•0 comments

Jjdag: A Jujutsu TUI

https://github.com/anthrofract/jjdag
1•anthrofract•39m ago•0 comments

Rules of mysterious ancient Roman board game decoded by AI

https://www.scientificamerican.com/article/rules-of-mysterious-ancient-roman-board-game-decoded-b...
1•mgoadric•39m ago•0 comments

Modem

https://modem.dev/
2•handfuloflight•45m ago•0 comments

ZeroDayRAT malware grants full access to Android, iOS devices

https://www.bleepingcomputer.com/news/security/zerodayrat-malware-grants-full-access-to-android-i...
1•Gaishan•45m ago•1 comments

Nerfed or Not

https://nerfedornot.com
2•randomuxx•52m ago•0 comments

AGI by two definitions (initial blog 2026-02-11)

https://sites.tnyrl.com/agi-defined/blog/2026-02-10/
2•realityfactchex•55m ago•1 comments

A $30M Gift to the Global Mental Health Community

https://www.kintsugihealth.com/blog/open-source
1•gone35•57m ago•0 comments