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

Stanford Physicist Uses AI to Tackle Quantum Gravity Problem

https://thequantuminsider.com/2026/11/26/stanford-physicist-uses-ai-to-tackle-quantum-gravity-pro...
1•thunderbong•56s ago•0 comments

Diagram Tool

https://www.reddit.com/r/softwarearchitecture/s/vkaQHhQiF6
1•ryanthedev•1m ago•0 comments

Voyager 1 Stops Sending Data

https://hackaday.com/2026/11/25/voyager-1-stops-sending-data-reaches-one-light-day-from-earth/
1•setnone•2m ago•0 comments

The SciML Factory: A New Approach to Agentic Open Source Maintenance

https://discourse.julialang.org/t/the-sciml-factory-a-new-approach-to-agentic-open-source-mainten...
1•postflopclarity•4m ago•0 comments

Nytka – self-hosted server and Android app for the Omi pendant

https://hrabovskyi.online/projects/nytka/
1•nimus•6m ago•0 comments

Don't blame cyber-attacks for recent outages. The real villain is the US economy

https://www.theguardian.com/commentisfree/2026/nov/20/cyber-attacks-outages-blame-economy
1•cdrnsf•7m ago•0 comments

Millions of disposable gVisor sandboxes a day with persistent storage

https://gvisor.dev/blog/2026/11/19/anatomy-of-a-3b-step/
1•shayonj•7m ago•0 comments

Retail Self-Checkouts Targeted in Fight to Shield Jobs from AI

https://news.bloomberglaw.com/daily-labor-report/retail-self-checkouts-targeted-in-fight-to-shiel...
1•louiereederson•8m ago•0 comments

Show HN: CoDesignFlo – Keep Figma in sync with the code your AI agents ship

https://github.com/orkestralai/codesignflo
1•saccodd•8m ago•0 comments

EasyJet profits collapse by 96%

https://www.theguardian.com/business/2026/nov/25/easyjet-unable-to-rule-out-further-jobs-losses-p...
3•theanonymousone•9m ago•0 comments

Future of OSS Contributions: Vouching

https://github.com/ghostty-org/ghostty/commit/4ebafeb70b3dde9de578040f90fa9d8c13dfa2d0
1•jemiluv8•9m ago•1 comments

Show HN: I made a FREE note-taking app that connects to your AI

https://folio-eta-bay-59.vercel.app
1•Adam-Hincu•11m ago•0 comments

Letter to a Junior Technical Writer

https://passo.uno/letter-to-a-junior-tech-writer/
1•theletterf•12m ago•0 comments

Show HN: Peerdeck – QBittorrent/Transmission Remote for macOS/iOS

https://github.com/xheiop/Peerdeck
1•xheiop•12m ago•0 comments

The great decline of Stack Overflow

https://sk500.online/tech/the-great-decline-of-stack-overflow
3•airhangerf15•13m ago•1 comments

OpenAI offering $8k a month to teach small businesses AI

https://openai.com/openworks/
1•armcat•14m ago•1 comments

Show HN: Pgseal – Zero-data-access Postgres/Supabase schema drift and RLS guard

https://github.com/yun87457-web/pgseal
1•kannsky•16m ago•0 comments

Kioxia Announces GP2 Series SSD with over 18M Random Read IOPS

https://www.servethehome.com/kioxia-gp2-series-ssd/
2•ksec•17m ago•1 comments

End of an era as Marquez announces shock retirement after eighth MotoGP title

https://www.reuters.com/sports/motogp-champion-marquez-retire-after-2026-season-2026-11-27/
1•mirmor23•17m ago•0 comments

Made a video game portfolio website

https://www.samgdf.com/
1•samgdf2•18m ago•0 comments

Show HN: I restored Palm's last device, and brought its OS to other platforms

https://www.webosarchive.org/pivot/2026/11/27/the-story-so-far/
2•codepoet80•19m ago•0 comments

TryBrake

https://trybrake.com
1•Elie_Amar•20m ago•0 comments

Claude Code running on Gameboy color, advance, 3ds, ps vita

https://jamesbrine.com.au/wire-chat-game-boy-color-pong/
1•referefref•21m ago•1 comments

Our AI QA agent on Momentic's open QA Bench, with every run and verdict

https://github.com/pluswithai/qa-bench-results
1•pluswithai•25m ago•0 comments

AI is straining America's open records systems

https://www.technologyreview.com/2026/11/25/1149702/ai-is-straining-americas-open-records-systems/
1•jonbaer•26m ago•0 comments

Show HN: Wots – restaurant recommendations from people with your taste

https://wots.io/
1•riverdweller•26m ago•0 comments

Rayshader 1.0

https://www.tylermw.com/posts/rayverse/rayshader-1-0-exit-the-matrix.html
1•tylermw•26m ago•0 comments

Menutr: My favorite network condition diagnostic tool, now in your menu bar

https://davepedu.com/blog/2026/11/25/menutr/
2•dpedu•28m ago•0 comments

AI Success Factors – Food for Agile Thought 572

https://age-of-product.com/food-agile-thought-572-ai-success-factors/
1•swolpers•28m ago•0 comments

Show HN: Place AI and math breakthroughs on a timeline vs. Scott Aaronson

https://youraitimelines.com/
1•ap11071•28m ago•0 comments