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

Claude Code Context Debloat Mod

https://github.com/franciscocarloserra/claude-code-context-debloat-mod
1•FranciscoCarlos•45s ago•0 comments

Kardashev

https://banburyroad.ai/
1•measurablefunc•6m ago•0 comments

Share error solutions, save AI-developer time

https://stackoverbot.com/
2•punnerud•6m ago•0 comments

How Is Time Synchronized in Autonomous Driving Data?

https://sanspareilsmyn.github.io/blog/av-time-sync/en/
1•sanspareilsmyn•10m ago•0 comments

Show HN: Codex Reset Radar – tracking when Codex usage limits reset

https://codexreset.today/
1•jimmyhsu•13m ago•0 comments

AKS Is Growing – Along with Its Kubernetes Utilization Problem

https://cloudnativenow.com/features/aks-is-growing-along-with-its-kubernetes-utilization-problem/
1•BlackPlot•17m ago•0 comments

Raspberry Pi Desktop Now Available for PC and Mac

https://www.raspberrypi.com/news/raspberry-pi-desktop-now-available-for-pc-and-mac/
2•nkjoep•17m ago•0 comments

The Missing Piece in Rust Error Handling

https://mcmah309.github.io/posts/the-missing-piece-in-rust-error-handling/
2•pjmlp•17m ago•0 comments

Experimenting with Bindless Textures in WebGPU

https://toji.dev/2026/10/06/webgpu-bindless.html
1•AshleysBrain•18m ago•0 comments

Nano Banana 2.1

https://deepmind.google/models/model-cards/nano-banana-2-1/
1•tosh•18m ago•0 comments

Streaming an LLM chat across a TypeScript/Python boundary: the details that bite

https://chimerai.dev/blog
1•arminburger•23m ago•0 comments

2G to 5G Evolution

https://vadiml1024.github.io/mobile-evolution/
1•vadiml•28m ago•1 comments

Show HN: UnifiWorkspace – A side-by-side multi-pane workspace for Chrome

https://chromewebstore.google.com/detail/unifiworkspace/ddelhgpeajillpfoogmbloailpommepi
1•jorelnueva•29m ago•0 comments

Opus 5.5 Built Seven Adobe Clones in Rust

https://www.orcarouter.ai/blog/artcraft-opus-5-5-seven-adobe-clones-in-rust
1•pelagicAustral•32m ago•0 comments

Show HN: Daisy – Local-first meeting recorder for Mac with an MCP server

https://github.com/ca33u/daisy-app
1•ca33u•34m ago•0 comments

Ask HN: Anyone did workshops for students on using agents/Claude Code?

1•kolinko•35m ago•0 comments

Open Source Project:Run many coding agents at once, with a gate in front of prod

https://github.com/NicholasFlemmer/styx-app
1•nicflemmer•37m ago•0 comments

Fervo Energy: Big Tech's Clean Energy Bet Is Unraveling

https://www.morpheus-research.com/fervo/
2•mempirate•38m ago•0 comments

AlphaSteel ReviEwS (2026): We Tried It My Honest Review

https://script.google.com/macros/s/AKfycbzeHJ41bEHs5o2zIQHi8wt4hi9K2Itk6VrzOGrUGlFQaqPrNVgs_e6YyC...
1•ralugatk•43m ago•0 comments

Latent space bias directions in LLMs capture confidence, not fairness

https://arxiv.org/abs/2610.08559
1•sbulaev•45m ago•0 comments

Silicon Valley thinks AI will kill jobs. Economists are not convinced

https://www.ft.com/content/8f783c04-5fc5-43d4-bab2-495ac31806c6
1•1vuio0pswjnm7•46m ago•0 comments

Forever Junior: The Skills AI Can't Develop for You

https://tech.criteo.com/blog/human-skills-ai-cant-develop-junior-engineers/
3•brugidou•52m ago•0 comments

Books of the Times; Hackers as Heroes (1999)

https://archive.nytimes.com/www.nytimes.com/books/99/01/03/specials/levy-hackers.html
2•so-cal-schemer•1h ago•1 comments

Are CAPTCHAs Still Bot-Hard?

https://halligan.pages.dev/
4•vednig•1h ago•0 comments

pg_plan_filter 1.0.0 Released

https://www.postgresql.org/about/news/pg_plan_filter-100-released-3352/
1•ear7h•1h ago•0 comments

High Interest Rates Aren't Slowing AI Boom

https://www.nytimes.com/2026/10/05/business/ai-boom-interest-rates-fed.html
2•Ambolia•1h ago•1 comments

Show HN: GitHub Action to check AI-written code changes no files, without review

https://github.com/yuyuyuyuyu-dev/assert-no-unexpected-changes
1•yuyuyuyuyu-dev•1h ago•0 comments

Twenty-two pending curl vulnerabilities

https://daniel.haxx.se/blog/2026/10/07/twenty-two-pending-curl-vulnerabilities/
3•mfrw•1h ago•1 comments

HN has lost the joy for me

9•trencedamp•1h ago•3 comments

Show HN: Neptune, a free and open-source terminal built in Rust

https://github.com/zevem/neptune
3•gabo2006•1h ago•1 comments