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

Why a Robotics Startup's Failure Proves the Robot Starts with the Actuator

https://www.firgelli.com/blogs/news/k-scale-labs-failure-proves-robot-starts-with-actuator
1•RobbieDickson•5m ago•0 comments

Relicensing with AI-Assisted Rewrite

https://tuananh.net/2026/03/05/relicensing-with-ai-assisted-rewrite/
1•tuananh•11m ago•0 comments

NHS official pushed to add patient data to Palantir while advising company

https://www.ft.com/content/6c548670-0f3e-45f1-ba08-8bb6dd152af5
2•Jimmc414•14m ago•0 comments

Large-Scale Agentic RL for CUDA Kernel Generation

https://cuda-agent.github.io/
1•gmays•19m ago•0 comments

Ask HN: Seeing More Techcrunch on Frontpage?

1•par•19m ago•0 comments

Website showing LLM solutions to Knuth's Problems?

1•daly•19m ago•0 comments

Unified In-Process Agent Interface for Claude Code, Codex, Kimi

https://github.com/odysa/one-agent-sdk
2•agentforce•20m ago•0 comments

DOJ proposes policy aimed at limiting state bar ethics probes into its attorneys

https://abcnews.com/US/doj-proposes-policy-aimed-limiting-state-bar-ethics/story?id=130755238
4•petethomas•20m ago•1 comments

Global Consciousness Live Data

https://gcp2.net/#home_page_live_data
1•avonmach•21m ago•0 comments

RoundsKeeper – Score tracking for board/card games (Swift/SwiftUI, iCloud sync)

https://apps.apple.com/us/app/roundskeeper/id6754217431
1•justbustr•22m ago•1 comments

Show HN: The hardware isn't changing, why not get AI to build custom drivers?

https://github.com/eli7vh/signal-chain
1•elijahlucian•25m ago•0 comments

Show HN: Scape – One-click worktrees and orchestrators for Claude Code

https://www.scape.work/
3•bgnm2000•26m ago•0 comments

The Global Coherence Initiative [video]

https://www.youtube.com/watch?v=QFqsY-DT6rg
1•avonmach•26m ago•0 comments

Show HN: Fast Chladni figure simulation in Python with NumPy vectorization

https://github.com/ratwolfzero/Chladni_Figures
2•ratwolf•34m ago•1 comments

Show HN: Session-safe uploads and artifacts for remote MCP servers

https://aakashh242.github.io/remote-mcp-adapter/
1•aakashh242•37m ago•0 comments

You Just Reveived

https://dylan.gr/1772520728
3•djnaraps•41m ago•0 comments

Nike Is Moving Jobs to Low-Wage Regions of Indonesia

https://www.propublica.org/article/nike-jobs-indonesia-living-wages
4•petethomas•44m ago•0 comments

First Open-Source PR

https://duanehilton.com/notes/your-first-open-source-pr
1•rem_one•46m ago•0 comments

Signalbase – Real-time business intelligence API for agents (x402, USDC on Base)

https://github.com/brandontan/signalbase
1•brtan881972•51m ago•0 comments

Show HN: OctoFlow–GPU-native lang, vibe-coded with human at every decision gate

https://github.com/octoflow-lang/octoflow
1•mr_octopus•51m ago•3 comments

Low data gravity for fast retrieval on K8s (2021)

https://ra-mos.medium.com/get-up-an-running-with-local-ssds-on-kubernetes-gke-p1-the-code-c6cf5ac...
2•ramoz•52m ago•0 comments

Dear Meta Smart Glasses Wearers: You're Being Watched, Too

https://gizmodo.com/dear-meta-smart-glasses-wearers-youre-being-watched-too-2000728928
4•pabs3•53m ago•1 comments

Bayesian teaching enables probabilistic reasoning in large language models

https://www.nature.com/articles/s41467-025-67998-6
2•paraschopra•54m ago•0 comments

GitHub Copilot Goldeneye model preview

https://docs.github.com/en/copilot/reference/ai-models/model-hosting
1•amusingimpala75•1h ago•1 comments

*

1•kaungsetlin•1h ago•0 comments

LexisNexis confirms data breach as hackers leak stolen files

https://www.bleepingcomputer.com/news/security/lexisnexis-confirms-data-breach-as-hackers-leak-st...
4•arkadiyt•1h ago•0 comments

Morgan Stanley Lays Off 2,500 Employees Across All Divisions

https://www.wsj.com/finance/banking/morgan-stanley-lays-off-2-500-employees-across-all-divisions-...
5•LostMyLogin•1h ago•1 comments

Learn Fundamentals, Not Frameworks

https://newsletter.techworld-with-milan.com/p/learn-fundamentals-not-frameworks
2•stosssik•1h ago•0 comments

Brainworm – Hiding in Your Context Window

https://www.originhq.com/blog/brainworm
1•dsr12•1h ago•0 comments

How does AI change Software Engineering?

https://dlants.me/ai-se.html
1•todsacerdoti•1h ago•0 comments