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•11mo 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•11mo 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•11mo 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•10mo 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•11mo 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•11mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Exposing Claude Code Fake YouTubers (No Hate) [video]

https://www.youtube.com/watch?v=eh2OUZVQWdk
1•yunseo47•30s ago•0 comments

KeePassChi

https://codeberg.org/keepasschi
1•robin_reala•50s ago•0 comments

Production practices around a NestJS service

https://github.com/prod-forge/backend
1•alexsergey2•1m ago•1 comments

The Missing Context Layer: Why Your LLM Agent Can't Do More Than Text-to-SQL

https://airbyte.com/blog/the-missing-context-layer
1•eigenBasis•1m ago•0 comments

iPad is the best coding computer, which is why I always code on Mac

https://starikov.co/code-on-ipad/
1•iusevim•1m ago•0 comments

Kraken Refuses Extortion Demands After Criminal Group Films Internal Systems

https://www.blockhead.co/2026/04/14/kraken-refuses-extortion-demands-after-criminal-group-films-i...
1•thm•3m ago•0 comments

GenesisDB Syncra: Merge multiple event stores into one deterministic stream

https://syncra.genesisdb.io
5•patriceckhart•3m ago•0 comments

Ask HN: What standards or protocols exist for AI Agent permissions

1•lyfeninja•3m ago•0 comments

Claude Code Routines

https://code.claude.com/docs/en/routines
3•matthieu_bl•3m ago•0 comments

AI Approach Reveals Ocean Currents in Unprecedented Detail

https://today.ucsd.edu/story/new-ai-approach-reveals-ocean-currents-in-unprecedented-detail
1•gmays•3m ago•0 comments

An Oligarchy of Old People

https://www.theatlantic.com/magazine/2026/05/gerontocracy-wealth-power/686585/
3•sleepyguy•4m ago•1 comments

Mechanical Sympathy

https://vickiboykis.com/2026/04/13/mechanical-sympathy/
2•tosh•5m ago•0 comments

MCP Attack Atlas – 40 AI agent attack patterns catalogued

https://sunglasses.dev/mcp-attack-atlas
2•azrollin•5m ago•0 comments

Intel NPU based Speech To Text in any app at cursor

https://github.com/anubhavgupta/whisper-npu
2•anubhavgupta•6m ago•1 comments

Autonomous AI Agents Become Secure by Design with Nvidia OpenShell

https://blogs.nvidia.com/blog/secure-autonomous-ai-agents-openshell/
2•eigenBasis•7m ago•0 comments

Job Matcher – LLM-scored job listings from 10 boards, self-hosted

https://christopherbeaulieu.net/job-matcher/
2•cmb_dev•8m ago•0 comments

The toxic side of the Moon (2018)

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
3•tcp_handshaker•10m ago•0 comments

The State of Open Source Licensing in 2026

https://redmonk.com/sogrady/2026/03/25/open-source-licensing-2026/
2•Tomte•10m ago•0 comments

SHOW HN: DuckDB / DuckLake Server (With Arrow Flight SQL) for iOS

2•philbe77•11m ago•0 comments

Valve has just made it easier to run games on Linux with 8 GB cards

https://www.pcgamer.com/software/linux/a-valve-developer-has-just-made-it-easier-to-run-games-on-...
3•evo_9•11m ago•0 comments

Routines in Claude Code

https://claude.com/blog/introducing-routines-in-claude-code
3•meetpateltech•13m ago•0 comments

RAG-Forge – Framework-agnostic RAG toolkit with a maturity model

https://github.com/hallengray/rag-forge
2•hallengray•14m ago•0 comments

The Perimeter Problem

https://www.southwind.ai/blog/the-perimeter-problem
2•Eswo•14m ago•0 comments

Show HN: Java RocksDB Without JNI

https://github.com/dfa1/rocksdbffm
2•dfa11•14m ago•0 comments

I Discover New Blogs

https://kevquirk.com/how-i-discover-new-blogs
4•speckx•15m ago•0 comments

William Cecil's Succession Plan

https://www.historytoday.com/archive/history-matters/william-cecils-succession-plan
2•Petiver•15m ago•0 comments

Can LLMs Perform Synthesis?

https://arxiv.org/abs/2603.20264
3•PaulHoule•17m ago•0 comments

Add Animal Crossing events to your digital calendar

https://sethmlarson.dev/animal-crossing-calendar
2•SethMLarson•17m ago•0 comments

Show HN: Privacy-first retirement planner – no bank linking, AI-powered analysis

https://planwithclarity.app
2•smilano85•17m ago•0 comments

The problem with thinking you're part Neanderthal

https://www.technologyreview.com/2026/04/14/1135169/problem-thinking-part-neanderthal-human-evolu...
2•laurex•17m ago•1 comments