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: A lightweight, capture tool for Windows

https://bckim.com/snapy
1•woodgh•18s ago•0 comments

Bandit a 32bit baremetal computer that runs color forth [video]

https://www.youtube.com/watch?v=HK0uAKkt0AE
1•RomanZolotarev•6m ago•0 comments

Show HN: Agentplace, the tool we built to become a 20x company

https://agentplace.io/
1•Fortunevlad•7m ago•0 comments

Emacs Internal #01: Is a Lisp Runtime in C, Not an Editor

https://thecloudlet.github.io/blog/project/emacs-01/
1•smitty1e•7m ago•0 comments

Microsoft's Copilot Tasks AI uses its own computer to get things done

https://www.theverge.com/tech/885741/microsoft-copilot-tasks-ai
1•mikece•8m ago•0 comments

Colorado Lawmakers Push for Age Verification at the Operating System Level

https://www.pcmag.com/news/colorado-lawmakers-push-for-age-verification-at-the-operating-system-l...
1•mikece•10m ago•0 comments

Show HN: Ambit Shell – Easy Remote Shell for OpenClaw, Claude Code, etc.

https://github.com/ToxicPine/ambit-templates/tree/master/wetty
1•cardellifan•14m ago•0 comments

Show HN: Ambit-OpenCode – Cloud IDE with Seamless Mobile <> Desktop Handoff

https://github.com/ToxicPine/ambit-templates/blob/master/opencode/README.md
1•cardellifan•17m ago•0 comments

The Big Canada-Sweden Curling Beef

https://defector.com/the-big-canada-sweden-curling-beef-explained
1•ravenical•21m ago•0 comments

Politicians Consider Soviet-Style Controls on 3D Printers

https://reason.com/2026/02/25/politicians-consider-soviet-style-controls-on-3d-printers/
1•Stratoscope•21m ago•0 comments

Key OpenClaw Risks for Enterprise (Kaspersky)

https://www.kaspersky.com/blog/moltbot-enterprise-risk-management/55317/
1•ildar•24m ago•0 comments

Researchers Find 40k Exposed OpenClaw Instances

https://www.infosecurity-magazine.com/news/researchers-40000-exposed-openclaw/
3•ildar•25m ago•1 comments

Show HN: Pebbles – recurring reminders for stuff you forget

1•frontendstrong•28m ago•0 comments

Developer Roadmaps

https://techstack.sh/roadmap/
1•harrypotterwish•28m ago•0 comments

Show HN: Slim – local domains and HTTPS for dev servers

https://slim.sh/
1•kamranahmedse•29m ago•0 comments

The Physics of Squeaking Sneakers

https://arstechnica.com/science/2026/02/the-physics-of-squeaking-sneakers/
1•overtone1000•29m ago•0 comments

Show HN: Agent Bazaar – Billing and metering for MCP tool servers

https://noui.bot/docs/bazaar
1•hudtaylor•30m ago•0 comments

ODT to HTML Converter with Semantic CSS Styling

https://github.com/R2Innovation/odt2html
1•mou7664•30m ago•1 comments

Show HN: RotaFlow – A privacy-first shift calendar built with SwiftUI

https://www.rotaflow.app/
1•liliums•30m ago•0 comments

Spotify Update on Developer Access

https://developer.spotify.com/blog/2026-02-06-update-on-developer-access-and-platform-security
2•superasn•37m ago•0 comments

The Longest Line of Sight

https://tombh.co.uk/longest-line-of-sight
2•zdw•38m ago•0 comments

Show HN: I Built Smart Radio That Auto-Skips Talk and Ads by Using ML

https://tunejourney.com/
2•FreeGuessr•39m ago•1 comments

Ask HN: What happens when all 21M BTC is minted

3•totaldude87•39m ago•1 comments

Medicaidspending.org – Search $1.09T in Medicaid provider payments (2018-2024)

https://medicaidspending.org/
2•pw•39m ago•2 comments

AIlways – Meeting Truth and Context Copilot

1•kbp527•43m ago•0 comments

Would you use LLM:// connection URLs?

https://danlevy.net/llm-connection-strings/
1•justsml•44m ago•1 comments

Sharesight MCP

https://github.com/Haizzz/sharesight-mcp
1•haizzz•44m ago•0 comments

HeadElf – C-Suite Executive Intelligence System

https://pauljbernard.github.io/headElf/
1•paulbernard•45m ago•0 comments

I built a cross-platform music app with AI for under £400

https://massimo.mongardini.it/i-built-a-cross-platform-music-sharing-app-with-ai-for-under-300/
1•macsmax•47m ago•1 comments

C64 Copy Protection

https://www.commodoregames.net/copyprotection/
1•snvzz•49m ago•0 comments