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

Show HN: Remember Me – O(1) Client-Side Memory (40x cheaper than Vector DBs)

https://github.com/merchantmoh-debug/Remember-Me-AI
1•MohskiBroskiAI•58s ago•0 comments

Claude Code Won't Fix Your Life

https://www.joanwestenberg.com/claude-code-wont-fix-your-life/
1•latexr•5m ago•0 comments

Testing: Apple N1 Wi-Fi chip improves on older Broadcom chips in every way(2025)

https://arstechnica.com/gadgets/2025/11/testing-shows-apple-n1-wi-fi-chip-improves-on-older-broad...
1•mpweiher•6m ago•0 comments

Show HN: Rerankers – Models, benchmarks, and papers for RAG

https://github.com/agentset-ai/awesome-rerankers
1•midamurat•7m ago•0 comments

All In – a small tool to check real buyin after decisions

https://www.cognu.app/all-in
1•anticlickwise•8m ago•2 comments

AI Is still making code worse: A new CMU study confirms (2025)

https://blog.robbowley.net/2025/12/04/ai-is-still-making-code-worse-a-new-cmu-study-confirms/
1•mpweiher•10m ago•0 comments

Why Bitchat Is a Bad Idea: (My Audit Found Critical Zero-Days)

https://saadkhalidhere.medium.com/why-bitchat-is-a-bad-idea-my-audit-found-critical-zero-days-1b1...
1•KellyCriterion•11m ago•0 comments

UK ministers launch consultation on whether to ban social media for under-16s

https://www.theguardian.com/uk-news/2026/jan/19/uk-ministers-launch-consultation-into-whether-to-...
2•chrisjj•12m ago•0 comments

Optimizing GPU Programs from Java Using Babylon and Hat

https://openjdk.org/projects/babylon/articles/hat-matmul/hat-matmul
2•pjmlp•12m ago•0 comments

Weather Spark – The Weather Year Round Anywhere on Earth

https://weatherspark.com/
1•mihau•13m ago•0 comments

Tiled Words

https://tiledwords.com/
1•napolux•14m ago•0 comments

Workspaces and Monorepos in Package Managers

https://nesbitt.io/2026/01/18/workspaces-and-monorepos-in-package-managers.html
1•Couto•20m ago•0 comments

Automate Your AI Workflows with Claude Code Hooks

https://blog.gitbutler.com/automate-your-ai-workflows-with-claude-code-hooks
1•zdgeier•20m ago•0 comments

Will all our drugs come from China? (2024)

https://atelfo.github.io/2024/12/20/will-all-our-drugs-come-from-china.html
1•robocat•22m ago•0 comments

Ask HN: Is there a search engine that blocks SEO / AI content?

2•cauliflower99•24m ago•2 comments

Austrian cow shows first case of flexible, multi-purpose tool use in cattle

https://phys.org/news/2026-01-austrian-cow-case-flexible-multi.html
2•coolcoder613•27m ago•0 comments

IntelliJ Idea: The Documentary – Trailer [video]

https://www.youtube.com/watch?v=TwMXi6tDzLE
1•poisonborz•27m ago•0 comments

Show HN: Focusmo – A focus app I built for my ADHD time-blindness

https://www.focusmo.app/
1•elesinn•30m ago•0 comments

Why Trump's split with Europe over Greenland is a double-edged sword for Russia

https://www.cnn.com/2026/01/20/europe/analysis-putin-view-greenland-trump-latam-intl
2•breve•33m ago•0 comments

Show HN: Local and Private TradingView Alternative

https://www.vaultcharts.com/
3•AlexBThomsen•40m ago•1 comments

Antarctic penguins have shifted their breeding season

https://www.theguardian.com/world/2026/jan/20/antarctic-penguins-shift-breeding-season-climate-ch...
3•mykowebhn•41m ago•0 comments

Winaskpass: WSL SSH-add helper using WinCred

https://scarpino.dev/posts/winaskpass-wsl-ssh-add-helper-using-wincred.html
1•ilpianista•44m ago•0 comments

Extracting verified C++ from the Rocq theorem prover at Bloomberg

https://bloomberg.github.io/crane/
2•clarus•45m ago•1 comments

Show HN: Explic – An AI tutor that prompts you with questions, not answers

https://www.explic.app/
1•IndieDev-Will•45m ago•1 comments

Ask HN: Is it still worth building an AI tools directory in 2026?

1•NewWebDev•46m ago•0 comments

SSH to Get Your Coffee

https://www.terminal.shop/
1•michael-sumner•52m ago•0 comments

PardusAI – no prompt, only 1 CSV file, full self data analysis

https://pardusai.org/
1•lidangzzz•55m ago•0 comments

UK gambling regulator accuses Meta of lying about struggle to spot illegal ads

https://www.theregister.com/2026/01/20/uk_gambling_comission_criticizes_meta/
2•xyzzy3000•58m ago•0 comments

The Door

https://xorvoid.com/the_door.html
1•ibobev•1h ago•0 comments

Markdown Is the Best Format for Note-Taking

https://oneuptime.com/blog/post/2026-01-19-why-markdown-is-the-best-format-for-notetaking/view
1•ndhandala•1h ago•0 comments