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

CATL says sodium batteries are mainstream-ready, signs 60 GWh deal

https://electrek.co/2026/04/27/catl-sodium-ion-battery-60gwh-energy-storage-deal/
1•breve•1m ago•0 comments

AgentCheck – Pytest for AI Agents

https://pypi.org/project/pygent-test/
1•ash_ai•4m ago•0 comments

GTFOBins

https://gtfobins.org/
1•StefanBatory•4m ago•0 comments

The next step beyond Lovable–where the AI doesn't just build the UI

https://www.extern.co.za/
1•Luncedo•4m ago•0 comments

IMDB introduces mandatory account: User reviews only readable after login

https://basic-tutorials.com/news/imdb-introduces-mandatory-account-user-reviews-only-readable-aft...
1•tokyobreakfast•5m ago•0 comments

Show HN: Modern alternative to Google Dictionary, AI-powered and context-aware

https://chromewebstore.google.com/detail/quickdef-–-ai-dictionary/ioepkncpchchdiookgpkckafhfjcehke
1•hanifrev•7m ago•0 comments

Show HN: Gate – AI workers handle dev tickets in a visual workspace

https://soliddark.net/gate
1•SolidDark•11m ago•0 comments

Cryptography Challenges KalmarCTF 2026

https://blog.zksecurity.xyz/posts/kalmar2026/
2•ahpuh•13m ago•0 comments

Curryvim, the new Neovim distro, that does not try to be VSCode

https://github.com/SyntaxError2505/curryvim
1•SyntaxError2505•25m ago•0 comments

Our response to the April 2026 incident

https://lovable.dev/blog/our-response-to-the-april-2026-incident
1•filleokus•34m ago•0 comments

Barbara Liskov: Data Abstraction, Dijkstra, Distributed Systems

https://www.developing.dev/p/turing-award-winner-data-abstraction
1•signa11•37m ago•0 comments

Show HN: Netflix for Internet Pirates

https://plank.lsreeder.com/
1•lsreeder01•37m ago•1 comments

Building an In-House Lovable

https://engineering.merciyanis.com/blog/going-ai-native-how-we-handed-our-backlog-to-agents
1•axi0m•39m ago•0 comments

Pompeii archaeologists use AI to reconstruct man killed in volcano's eruption

https://www.npr.org/2026/04/28/g-s1-118986/pompeii-archaeologists-use-ai-to-reconstruct-man-kille...
1•razorbeamz•46m ago•0 comments

Show HN: Nat-zero – Scale-to-zero NAT instances for AWS (Terraform module)

https://machine.dev/blog/nat-zero-scale-to-zero-nat-instances/
1•leonardosul•49m ago•1 comments

Porting a Scratch-Built 500M LLM Training Pipeline to ROCm on Strix Halo

https://github.com/epscylonb/1386.ai.rocm
1•thomasfromcdnjs•52m ago•0 comments

Wire: Secure Messenger from Berlin

https://wire.com/en/
2•cl3misch•53m ago•0 comments

Show HN: A narrative walk through AI history, paper by paper (1936–2025)

https://github.com/hgus107/A-Long-Walk-of-AI
1•hgus107•55m ago•0 comments

Vibe Coding Will Break Your Company

https://www.forbes.com/sites/jasonwingard/2026/04/23/vibe-coding-will-break-your-company/
41•sminchev•56m ago•19 comments

Requests for Startups

https://www.ycombinator.com/rfs
2•taubek•1h ago•0 comments

Xiaomi open-sources MiMo-V2.5: 311B A15B 1M-context omnimodal model

https://huggingface.co/XiaomiMiMo/MiMo-V2.5
2•gainsurier•1h ago•0 comments

For the average price of a car in the US, you could buy 4 new Chinese EVs

https://english.kyodonews.net/articles/-/75029
10•anigbrowl•1h ago•0 comments

Show HN: Discuss CLI – No more reviewing agent plans in the terminal

https://github.com/codesoda/discuss-cli/
1•codesoda•1h ago•1 comments

What Claude Shannon Knew in 1950 That We're Pretending Is New

https://www.thecontentwrangler.com/p/what-claude-shannon-knew-in-1950
5•eigenBasis•1h ago•0 comments

Billionaire tax proposal in California on track to qualify for ballot

https://www.boston25news.com/news/national/billionaire-tax/CB6SLQIFI42VDPRJQ37OBMS4TY/
4•1vuio0pswjnm7•1h ago•1 comments

Nvidia's Reaches New Record at Nearly $5.3T Value

https://www.forbes.com/sites/antoniopequenoiv/2026/04/27/nvidia-sets-new-record-with-nearly-53-tr...
1•mgh2•1h ago•0 comments

Ideavalu – AI generates startup ideas based on your esperience

https://www.ideavalu.com
1•Sottasan•1h ago•1 comments

Nocord HF – A discord style FT8 client written in Golang

https://github.com/kyleomalley/nocordhf
1•kyleomalley•1h ago•2 comments

A new Moore's Law for AI agents

https://theaidigest.org/time-horizons
1•Cub3•1h ago•0 comments

The Technological Republic, in brief

https://twitter.com/PalantirTech/status/2045574398573453312
1•layer8•1h ago•0 comments