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

AI agent freed itself and started mining crypto

https://www.axios.com/2026/03/07/ai-agents-rome-model-cryptocurrency
2•badc0ffee•6m ago•0 comments

Good Vibes, Bad Vendors: AI Coding Works Now

https://werd.io/good-vibes-bad-vendors/
1•etothet•12m ago•0 comments

AI Execution Context Authorization Model

https://github.com/Madongming/context-capability-model/tree/main
2•elsove812•12m ago•2 comments

Show HN: Free browser MMO where you manage a band from garage to headliner

https://www.roadtoheadliner.com/
1•dusky_sk•14m ago•1 comments

Way-Shell: A GNOME-like shell for Wayland compositors

https://github.com/ldelossa/way-shell
1•radeeyate•16m ago•0 comments

Show HN: RotaGuide Spotlight – Markdown based UI guide system for web apps

https://github.com/EBPkobli/rotaguide-spotlight
1•furkankub•17m ago•0 comments

Animated Visualizer from Circles and Lines

https://claude.ai/public/artifacts/fbfeac55-4358-4e31-839c-f33a227bbc5e
1•water_badger•25m ago•1 comments

Bedrock Linux

https://bedrocklinux.org/
2•lemper•26m ago•0 comments

British Columbia to make daylight saving time permanent

https://www.npr.org/2026/03/07/nx-s1-5741076/british-columbia-daylight-saving-time
1•geox•27m ago•1 comments

Prison guards discussed cover-up of Epstein's death, inmate tells FBI

https://www.miamiherald.com/news/local/crime/article314966334.html
2•ParentiSoundSys•32m ago•0 comments

Patching minified Claude Code so it can hear webhooks

https://github.com/Connoropolous/claude-notifications-for-agents
2•connorturland•32m ago•0 comments

Show HN: Navtee – Golf course directory and navigation app

https://navtee.com/
1•metafarer•33m ago•0 comments

ReactScope

https://folio.stage.obvious.ai/obvious/reactscope
1•handfuloflight•36m ago•0 comments

Show HN: Qry – CLI web search that always outputs JSON, with swappable back ends

https://github.com/justEstif/qry
2•justEstif•38m ago•0 comments

Show HN: SafeAgent – exactly-once execution guard for AI agent side effects

2•Lions2026•39m ago•1 comments

Show HN: Open-source personal finance AI that runs locally on your laptop

https://nullbook.ai/
2•jfornear•40m ago•1 comments

Forcing Flash Attention onto a TPU and Learning the Hard Way

https://archerzhang.me/forcing-flash-attention-onto-a-tpu
4•azhng•42m ago•0 comments

Mechanical Movements Animated

https://507movements.com/
3•TigerUniversity•42m ago•0 comments

Show HN: Pipe Checker – paste a sales deal and it checks BANT qualification

https://pipechecker.onrender.com/
1•eghatch92•47m ago•0 comments

Juno – J Web IDE

https://jsoftware.github.io/juno/app/
1•todsacerdoti•47m ago•0 comments

ReverseLM Playground

https://scottinallca.ps/reverse-lm/
1•scottmf•49m ago•0 comments

Integrating AI-Driven Predictive Analytics for Cybersecurity Risk Mitigation [pdf]

https://www.researchgate.net/profile/Adeyinka-Oluwatomisin/publication/401488012_Integrating_AI-D...
1•Olshansky•50m ago•0 comments

Msspproviders.io: a searchable directory of managed security service providers

https://msspproviders.io
1•datacorp•55m ago•1 comments

Old Versions of Programs, Drivers and Games

https://www.oldversion.com/
1•TigerUniversity•58m ago•0 comments

Zero Sum Game

https://code.chuanqisun.com/zero-sum-game/
1•low_tech_punk•1h ago•0 comments

Karabiner-Elements is a powerful tool for customizing keyboards on macOS

https://github.com/pqrs-org/Karabiner-Elements
2•vinhnx•1h ago•0 comments

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit

https://cloud.google.com/blog/topics/threat-intelligence/coruna-powerful-ios-exploit-kit
1•JumpCrisscross•1h ago•0 comments

How Vinay Prasad Came to Washington, and Why It Was Always Going to End This Way

https://anishkokamd.substack.com/p/how-vinay-prasad-came-to-washington
1•ssivark•1h ago•0 comments

Judge Voids Mass Layoffs at Voice of America

https://www.nytimes.com/2026/03/07/us/politics/judge-kari-lake-voa-layoffs.html
11•JumpCrisscross•1h ago•0 comments

Scaling and controlling an army of devices in parallel with voice commands

https://www.youtube.com/watch?v=kxfT4ZzG2l0
1•GPUboy•1h ago•0 comments