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•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•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

Playbook-Based Agent Reference Architecture

https://chatbotkit.com/examples/playbook-based-agent-reference-architecture
1•_pdp_•1m ago•1 comments

What's a piece of tech you were excited about but stopped using?

1•bobbyblackstone•2m ago•0 comments

Show HN: Gemini, OpenAI, Claude, Grok and Mistral argue over everything

https://llmxllm.com/
1•mananonhn•3m ago•1 comments

The strangest programming languages you've ever heard of

https://www.omnesgroup.com/weirdest-programming/
1•birdculture•4m ago•0 comments

AI tool that audits UI and generates fixes(built in 36 hours)

https://blopai.com/
1•Laurlund449•6m ago•1 comments

Does Liking Yellow Imply Driving a School Bus? Semantic Leakage in LLMs

https://arxiv.org/abs/2408.06518
1•trueduke•6m ago•0 comments

Show HN: Solving Zodiac's Z32 – top candidate has anomaly visible from space

https://github.com/dstampher/zodiac-z32-cipher
1•dstamp•7m ago•0 comments

Facial recognition should not be introduced without Scottish Givernment sign off

https://www.thenational.scot/news/25696771.orwellian-facial-recognition-shouldnt-introduced-witho...
1•nephihaha•12m ago•1 comments

The left has become preserve of old white men

https://www.thenational.scot/politics/25696958.radical-left-become-preserve-old-white-men/
2•nephihaha•15m ago•2 comments

My AI Usage Manifesto

https://jshamsul.com/essays/2025-12-13-my-ai-usage-manifesto
1•jibone•16m ago•0 comments

The Gorman Paradox: An Explanation? – Codemanship's Blog

https://codemanship.wordpress.com/2025/12/15/the-gorman-paradox-an-explanation/
1•rbanffy•20m ago•0 comments

Rejecting rebase and stacked diffs, my way of doing atomic commits

https://iain.rocks/blog/2025/12/15/rejecting-rebase-and-stack-diffs-my-way-of-doing-atomic-commits
1•that_guy_iain•22m ago•0 comments

SK Hynix Forecasts Tight Memory Supply Lasting Through 2028

https://www.techpowerup.com/344063/sk-hynix-forecasts-tight-memory-supply-lasting-through-2028
1•akyuu•23m ago•0 comments

Chain Prompts Like Unix Tools with Dotprompt

https://pythonic.ninja/blog/2025-11-27-dotprompt-unix-pipes/
1•PythonicNinja•25m ago•0 comments

Show HN: LeagueOfLegends AI Coach

https://github.com/sorena-ai/LeagueAiCoach
1•danielbedrood•25m ago•0 comments

Show HN: Turn LinkedIn/GitHub into a personal website in 2 min (open-source)

https://github.com/yashrathi-git/portfolioly
1•produktive•26m ago•0 comments

Avoid UUIDv4 Primary Keys

https://andyatkinson.com/avoid-uuid-version-4-primary-keys
2•pil0u•29m ago•0 comments

Why New York Has Backed Off on Addressing Climate Change

https://www.nytimes.com/2025/12/15/nyregion/why-new-york-has-backed-off-on-addressing-climate-cha...
2•fleahunter•29m ago•0 comments

OS-9

https://en.wikipedia.org/wiki/OS-9
2•doener•32m ago•0 comments

These Aren't the Tools You're Looking For: The Hidden Dangers of MCP

https://ainativedev.io/news/these-aren-t-the-tools-you-re-looking-for-the-hidden-dangers-of-mcp
1•ben_s•33m ago•0 comments

The First Moonwalk – Bill Bailey – The Apollo Theatre – New York – 1955 [video]

https://www.youtube.com/watch?v=y71njpDH3co
1•handfuloflight•33m ago•0 comments

Building a High-Performance OpenAPI Parser in Go

https://www.speakeasy.com/blog/building-speakeasy-openapi-go-library
1•subomi•34m ago•0 comments

Deep-learning model predicts how fruit flies form, cell by cell

https://news.mit.edu/2025/deep-learning-model-predicts-how-fruit-flies-form-1215
4•fleahunter•36m ago•0 comments

The Importance of Network Effects for Startups

https://www.techfounderstack.com/p/the-importance-of-network-effects
1•makle•37m ago•0 comments

Korea mandates switch to 5G standalone, warns carriers of measures

https://biz.chosun.com/en/en-it/2025/12/10/IQDII7T33REKFGHNYCMM44QSX4/
2•ksec•38m ago•0 comments

Show HN: A playful repo full of Christmas easter eggs

https://github.com/openapi/xmas-party
3•francescobianco•39m ago•0 comments

New Bill That Would Ban 'Chemtrails' Advances in South Carolina Senate

https://www.charlottestories.com/new-bill-that-would-ban-chemtrails-advances-in-south-carolina-se...
1•doener•41m ago•0 comments

Starlink and Chinese satellites nearly collided last week

https://www.theverge.com/news/844502/starlink-and-chinese-satellites-nearly-collided-last-week
2•quapster•42m ago•0 comments

iRobot Files for Bankruptcy

https://www.theverge.com/news/844460/irobot-files-for-bankruptcy
3•praving5•45m ago•0 comments

Show HN: Gochu – Uncensored AI chat, free and no email required

https://gochu.app
1•theuniquebob•46m ago•1 comments