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

'Robots don't bleed': Ukraine sends machines into battle in place of humans

https://www.cnn.com/2026/04/20/europe/robots-ukraine-battlefield-drones-intl-cmd
1•breve•1m ago•0 comments

Linotype Demonstration [video]

https://www.youtube.com/watch?v=MI2sYvUb4_0
1•altilunium•4m ago•0 comments

Personal data leak: French document agency ANTS hit by cyberattack

https://www.connexionfrance.com/news/personal-data-leak-french-document-agency-hit-by-cyberattack...
1•RockstarSprain•10m ago•0 comments

Monitoring CPU and Memory on Your VPS with AppSignal

https://blog.appsignal.com/2026/04/21/monitoring-cpu-and-memory-on-your-vps-with-appsignal.html
1•malinavojvodic•13m ago•0 comments

Show HN: Chrome extension for always on Work Assistant (ActorDo)

https://actordo.com/chrome-extension/
1•websku•14m ago•0 comments

Show HN: Anvil-uplink-CLI – agent-safe terminal CLI for Anvil.works apps

https://github.com/matshoppenbrouwers/anvil-uplink-cli
1•hoponthestack•19m ago•0 comments

Show HN: My AI Native Obsidian Setup

https://alexanderweichart.de/4_Projects/obsidian-setup-2026/My-AI-native-Obsidian-Setup
3•surrTurr•19m ago•0 comments

Republican Rep. Obsessed with Hating Muslims Unveils Mamdani Act

https://newrepublic.com/post/209272/republican-rep-chip-roy-mamdani-act-muslims-socialists-immigr...
1•handfuloflight•23m ago•0 comments

OpenMythos: A looped transformer take on how Claude Mythos might work

https://firethering.com/openmythos-open-source-claude-mythos-reconstruction/
1•steveharing1•25m ago•0 comments

China's energy fortress was built to withstand just this type of oil shock

https://www.cnn.com/2026/04/20/china/china-energy-security-global-oil-crisis-iran-intl-hnk
4•breve•32m ago•0 comments

Key Front End Architectural Patterns for Complex Applications

https://sometechblog.com/posts/frontend-architecture-decisions/
1•l5870uoo9y•32m ago•0 comments

PhantomChat – Post-quantum messenger with Monero-style stealth addresses

https://github.com/cengo441337-a11y/phantomchat
2•n0l3x•34m ago•0 comments

Modeling Sparse and Bursty Vulnerability Sightings

https://arxiv.org/abs/2604.16038
1•cedricbonhomme•38m ago•0 comments

The History of SuperTuxKart

https://supertuxkart.net/History_of_SuperTuxKart
1•mdtrooper•40m ago•0 comments

Digital Omnibus reality check: 83.5% of access requests not properly answered

https://noyb.eu/en/digital-omnibus-reality-check-835-access-requests-not-properly-answered
2•latexr•41m ago•0 comments

Show HN: Static Flipbooks of Complex Media

https://flipbook.browserbox.io/
1•keepamovin•43m ago•0 comments

Claude for Equity Research

https://www.asiancenturystocks.com/how-to-use-claude-for-equity-resear/
1•fritz123•43m ago•0 comments

DotLLM – Building an LLM Inference Engine in C#

https://kokosa.dev/blog/2026/dotllm/
2•bjarteaarmolund•47m ago•0 comments

A DIY Watch You Can Actually Wear

https://www.hackster.io/news/a-diy-watch-you-can-actually-wear-8f91c2dac682
5•sarusso•47m ago•0 comments

Grafana 13

https://grafana.com/blog/grafana-13-release-all-the-latest-features/
4•dabinat•49m ago•0 comments

Overview of Kimi K2.6 Model

https://platform.kimi.ai/docs/guide/kimi-k2-6-quickstart
2•igravious•50m ago•0 comments

Ask HN: Hit Supabase's free→$25 pricing cliff. Any middle-tier options?

1•cgozdemm•54m ago•2 comments

OpenDyslexic: A Typeface for Dyslexia

https://opendyslexic.org/
2•molp•57m ago•0 comments

Plotnine: Grammar of Graphics for Python

https://plotnine.org/
1•fanf2•57m ago•0 comments

GPT Image 2 – AI-Powered Image Generation Tool

https://gptimg2ai.net
1•danielmateo773•1h ago•0 comments

Valgrind-3.27.0 Is Available

https://sourceforge.net/p/valgrind/mailman/message/59324626/
1•paulf38•1h ago•0 comments

Crystal Now Has Official Linux ARM64 Builds

https://crystal-lang.org/2026/04/07/official-linux-arm64-builds/
4•TheWiggles•1h ago•0 comments

The AI revolution – spamming 680PRs in 442 GitHub repos in 21 days in April

https://github.com/SAY-5
1•ddorian43•1h ago•1 comments

The first neural interface that transforms your thoughts into text

https://sabi.com/
3•filippofinke•1h ago•0 comments

Indent Is All You Need

https://blog.est.im/2026/stdin-11
2•est•1h ago•1 comments