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

Show HN: SharpSkill – LeetCode Alternative to Optimize Success in Tech ITW

https://sharpskill.fr/en
1•CocoZozo•3m ago•1 comments

Show HN: Mujoco React

https://github.com/noah-wardlow/mujoco-react
1•noahwardlow•3m ago•0 comments

Benchmarks for concurrent hash map implementations in Go

https://github.com/puzpuzpuz/go-concurrent-map-bench
1•platzhirsch•4m ago•0 comments

Human=True

https://blog.codemine.be/posts/2026/20260222-be-quiet/
1•avh3•6m ago•0 comments

Affirming Life While Opposing the Ethics of Procreation

https://toolong.co/s/v41ufalb
1•a_void_sky•8m ago•0 comments

Show HN: Adaptive WebServer Protection- Qriton Shield

https://shield.qriton.com/
1•ddmma•9m ago•0 comments

Game-Ready Voxel Meshes with Low-Cost AI

https://www.tyleo.com/blog/game-ready-voxel-meshes-with-low-cost-ai
1•tyleo•9m ago•0 comments

Show HN: 3DIMLI – No-code storefront builder for digital products (beta)

https://www.3dimli.com/
1•arpit077•9m ago•1 comments

Biweekly Pay Schedule 2026 – Complete Payroll Calendar with All Pay Dates

https://saveku.com/blog/biweekly-pay-schedule-2026-complete-payroll-calendar-with-all-pay-dates
1•roywj•10m ago•0 comments

From Cloudflare's Markdown for Agents to a Universal HTML→Markdown Extractor

https://github.com/frumu-ai/tandem
1•frumu•10m ago•1 comments

First mature Helm MCP (native Helm SDK v3 and v4)

https://pypi.org/project/helm-mcp/
1•api-py•10m ago•0 comments

Giant DNA viruses encode a translation initiation complex like eukaryotic life

https://www.cell.com/cell/fulltext/S0092-8674(26)00055-3
2•PaulHoule•11m ago•0 comments

I've implemented GSD to my build workflow. Any tips how to benefit the system?

https://twitter.com/borakaizen/status/2025631741567021182
1•kaizenb•11m ago•0 comments

MDIR: What If a Single Model Could Debate Itself Before Answering?

https://contactn8n410-del.github.io/basetools/article3.html
1•solscan_dev•12m ago•0 comments

How Ads evolved in this trendy world

https://dailyscratchpad.substack.com/p/ambuja-cement
1•sujayk_33•12m ago•0 comments

BDD (and Standard Cucumber Steps) Is a Great Fit for AI Agentic Coding

https://github.com/robmoffat/standard-cucumber-steps/blob/main/docs/agentic-coding.md
1•bobm_kite9•12m ago•0 comments

Fresh File Explorer – VS Code extension for navigating recent work

https://github.com/FreHu/vscode-fresh-file-explorer
3•frehu•13m ago•2 comments

Oxford breakthrough could make lithium-ion batteries charge faster

https://www.sciencedaily.com/releases/2026/02/260220010830.htm
2•jonbaer•13m ago•0 comments

Show HN: Winstack-truthlock – a CLI to lint AI responses for unsupported facts

https://github.com/Wise-Est-Systems/winstack-truthlock
1•Wise-Est-System•14m ago•0 comments

Generate Agents.md for Agents Using Dspy Recursive Language Models

https://github.com/originalankur/GenerateAgents.md
1•originalankur•15m ago•1 comments

Show HN: Vexp – graph-RAG context engine, 65-70% fewer tokens for AI agents

1•nicola_alessi•19m ago•0 comments

Epstein Forensic Finance

https://github.com/randallscott25-star/epstein-forensic-finance
3•sul_tasto•21m ago•1 comments

Show HN: Seafruit – Share any webpage to your LLM instantly

https://seafruit.pages.dev
3•svena33•21m ago•0 comments

'Starkiller Phishing Service Proxies Real Login Pages, MFA

https://krebsonsecurity.com/2026/02/starkiller-phishing-service-proxies-real-login-pages-mfa/
1•turbocon•23m ago•0 comments

Istota – A cybernetic emissary that lives in your Nextcloud

https://istota.xyz/front/
2•durakot•23m ago•0 comments

Show HN: Free Chrome extension to see what AI bots can read on your site

https://chromewebstore.google.com/detail/ai-seo-extension-by-radar/omadefoihnikgnonaiofoaojohhfonii
1•shubhamspawn•23m ago•0 comments

Show HN: Deterministic execution gate for AI agents

https://github.com/Nick-heo-eg/execution-gate
2•echoos•29m ago•1 comments

Show HN: Harmoni – I'm a CTO who got tired of being the human integration layer

https://www.harmoni.engineer/
1•andrelcanada•31m ago•1 comments

Show HN: Kmp-app-updater – GitHub Releases in-app updater for KMP apps

https://github.com/pavi2410/kmp-app-updater
1•pavi2410•34m ago•0 comments

The Bread Code

https://github.com/hendricius/the-sourdough-framework
4•BiraIgnacio•37m ago•1 comments