frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

iOS 27 features we didn't see onstage

https://techcrunch.com/2026/06/09/ios-27-features-we-didnt-see-on-stage/
1•ameypandey•40s ago•0 comments

Turn any PDF or article into a podcast episode

https://manateavagner.com/news/podcasts-pdf-to-episode
1•manateavagner•57s ago•0 comments

Ofarwise – a local Windows app for interview prep and mock practice

https://www.ofarwise.com/
1•hallengray•1m ago•0 comments

BlenderHunt, an Indie Marketplace for Blender Creators

https://blenderhunt.com/
1•egretfx•2m ago•0 comments

Don't mop the floor. Fix the leaky faucet

https://blog.br11k.dev/2026-06-02-dont-mop-the-floor-fix-the-leaky-faucet
1•konovalov-nk•3m ago•1 comments

Show HN: Frhog

https://www.frhog.com/?hn
1•krm01•3m ago•0 comments

WSP WordPress MCP – Connect AI Coding Agents to WordPress

https://github.com/bilalnaseer/wsp-wordpress-mcp
1•ibrarmaikah•7m ago•0 comments

Why the Supreme Court Is Debating Which Founding Fathers Were Drunks

https://www.wsj.com/us-news/law/supreme-court-session-cases-originalism-birthright-citizenship-se...
1•JumpCrisscross•8m ago•0 comments

Pelican on a Bicycle: Claude Fable 5 vs. GPT-5.5 Pro vs. Gemini 3.1 Pro

https://www.promptfrenzy.com/showdown/svg-pelican
1•spobin•8m ago•0 comments

Choice: Nextcloud Office Powered by Collabora or Euro-Office

https://nextcloud.com/blog/nextcloud-hub26-spring/
1•teekert•8m ago•0 comments

Eight Myths on Software Engineering and GenAI

https://spawn-queue.acm.org/doi/10.1145/3807963
1•RyeCombinator•12m ago•0 comments

Emacs Appearances in Pop Culture

https://ianyepan.github.io/posts/emacs-in-pop-culture/
1•ggcr•17m ago•0 comments

Inferoa AI harness claimed 90% cache savings. We ran it and measured 97.8%

https://zozo123.github.io/inferoa-demo/
1•zozo123-IB•17m ago•0 comments

TvOS 27: Apple Music Gains Hi-Res Lossless Audio on Apple TV 4K

https://www.macrumors.com/2026/06/10/tvos-27-apple-music-hi-res-lossless-audio-apple-tv/
1•tosh•19m ago•0 comments

How the Other Half Counts: Planner Statistics in Oracle, Db2, MySQL, SQLite

https://thebuild.com/blog/how-the-other-half-counts/
1•pgedge_postgres•19m ago•0 comments

Show HN: Impress your boss with interactive Decision Tree Visualization

https://github.com/mljar/supertree
2•pplonski86•20m ago•0 comments

Stop Gmail from Blocking Your Domain Emails – SPF, DKIM and DMARC Setup

https://mysevenstars.com/articles/email-authentication-guide.html
2•mssblogs•21m ago•1 comments

How to build a cancer vaccine, and whether they will work this time

https://www.owlposting.com/p/how-to-build-a-cancer-vaccine-and
1•yorwba•21m ago•0 comments

NASA Marches Toward Artemis III Mission in 2027, Names Crew Members

https://www.nasa.gov/news-release/nasa-marches-toward-artemis-iii-mission-in-2027-names-crew-memb...
1•noworld•23m ago•0 comments

Beyond Protectionism: Why EU should put up trade barriers against Chinese goods

https://www.noahpinion.blog/p/why-europe-should-put-up-trade-barriers
2•throw0101a•24m ago•1 comments

Show HN: A tool to analyze and manage sosreports

https://sos-vault.com/login
1•jlrueda•27m ago•0 comments

Open System Firmware: Experiences deploying LinuxBoot, coreboot at Google (2021) [video]

https://www.youtube.com/watch?v=xsikf8JzQyU
2•peter_d_sherman•27m ago•1 comments

The Bitter Lesson

http://www.incompleteideas.net/IncIdeas/BitterLesson.html
1•Anon84•28m ago•0 comments

Humans prefer to walk anticlockwise, scientists find – but reason is unclear

https://www.theguardian.com/science/2026/jun/10/humans-prefer-to-walk-anticlockwise-scientists-fi...
2•giuliomagnifico•29m ago•0 comments

Taiwan Mulls Curbs on AI Chip Exports to China to Align with US

https://www.bloomberg.com/news/articles/2026-06-09/taiwan-mulls-curbs-on-ai-chip-exports-to-china...
3•giuliomagnifico•30m ago•0 comments

July 13, 2026 Certificate update for Microsoft 365 apps on macOS/iOS devices

https://learn.microsoft.com/en-us/microsoft-365-apps/mac/certificate-update-mac-ios
1•guessmyname•34m ago•0 comments

LibreWXR: Self-hostable, drop-in replacement for the Rain Viewer API

https://github.com/JoshuaKimsey/LibreWXR
1•Leftium•37m ago•0 comments

Humans and LLMs share a mental disorder: Fugue Lock

https://vwwwv.org/post/fugue-lock
2•olemak•40m ago•0 comments

Robots are about to overtake armed soldiers as the deciders of war

https://www.newscientist.com/article/2529267-robots-are-about-to-overtake-armed-soldiers-as-the-d...
3•janandonly•40m ago•0 comments

Europe's Growing Rift with Trump Ensnares a $115M Tech Deal

https://www.nytimes.com/2026/06/09/technology/solvinity-kyndryl-blocked-deal-us-europe-rift.html
2•Vinnl•44m ago•1 comments