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

The Redundancy of English (1951) [pdf]

http://medientheorie.com/doc/shannon_redundancy.pdf
1•aragonite•2m ago•0 comments

UK's rudest chalk figure gets a glow-up to stop it fading in the rain

https://www.bbc.com/news/articles/cpvppe84lnvo
1•gnabgib•4m ago•0 comments

The UI problem of AI coding agents

https://cate.cero-ai.com/blog/ui-problem-ai-coding-agents
2•Imbiss•4m ago•0 comments

Silenced Words

https://www.silencedwords.com/
1•Towaway69•5m ago•1 comments

China's Robotics Dream Began in 1972

https://www.chinatalk.media/p/chinas-father-of-robotics
1•momentmaker•7m ago•0 comments

Show HN: Find YC startups relevant to you

https://platoseed.com/
1•nerdlogic•8m ago•0 comments

Police in China Sure Love Smart Glasses

https://gizmodo.com/police-in-china-sure-love-smart-glasses-2000763598
3•gnabgib•9m ago•0 comments

Building Rust Procedural Macros from the Grounds Up

https://www.learnix-os.com/ch02-03-implementing-the-bitfields-proc-macro.html
1•Sagi21805•10m ago•1 comments

'Backrooms' Stuns with $81M Debut

https://variety.com/2026/film/box-office/backrooms-box-office-record-opening-weekend-obsession-ju...
3•mindcrime•11m ago•0 comments

Show HN: Fluiq – detect prompt injection, PII, Crescendo attack 2 line of Python

https://getfluiq.com/
1•SaurabhKumbhar•11m ago•0 comments

Show HN: CakeML-based self-verifying, self-improving system

https://emberian.github.io/svenvs/
2•cmrx64•14m ago•0 comments

Most Products Don't Need That Much Engineering

https://comuniq.xyz/post?t=1183
1•01-_-•15m ago•0 comments

Is that song AI-generated? UChicago scientists create tool to check

https://news.uchicago.edu/story/song-ai-generated-uchicago-scientists-create-browser-extension-check
4•paulpauper•16m ago•1 comments

I Tried to Sell My House with a Chatbot

https://www.nytimes.com/2026/05/28/technology/sell-house-with-ai-no-realtor.html
2•paulpauper•17m ago•0 comments

The Cost of More

https://jasperinsweden.substack.com/p/the-cost-of-more
1•imartin2k•18m ago•0 comments

Thiel's move signals billionaires seeking a 'plan B' abroad

https://www.businessinsider.com/peter-thiel-argentina-billionaire-moving-abroad-2026-5
3•e2e4•19m ago•2 comments

Show HN: Sports Regime Lab – NBA regime analytics

https://sports.kezelon.com/
1•optimalutopia•19m ago•0 comments

AI Slop Is a Choice

https://building138.com/ai-slop-is-a-choice
2•usernamed7•20m ago•0 comments

Atomdrift is open-source malware detection for the software supply chain

https://atomdrift.org/
1•campuscodi•21m ago•0 comments

The History of "Prisencolinensinainciusol"

https://dirkdeklein.net/2026/02/03/the-fascinating-history-of-prisencolinensinainciusol-the-nonse...
2•NaOH•24m ago•0 comments

There's Something Else We Should Be Worrying About

https://www.nytimes.com/2026/05/31/opinion/artificial-intelligence-public-good.html
2•paulpauper•24m ago•0 comments

Steam Deck sells out in North America within 24 hours of price hike

https://arstechnica.com/gaming/2026/05/despite-price-hike-steam-deck-is-already-sold-out-in-north...
14•frutiger•27m ago•2 comments

Recto: Open-source internal-linking and orphan-page auditor (Cloudflare)

https://github.com/eikiyo/recto
2•Eikiyo•28m ago•2 comments

Government Relations (2020)

https://about.usps.com/postal-bulletin/2020/pb22539/html/info_004.htm
2•Tomte•29m ago•0 comments

Netflix Wiz creates app to slash AI bills, then open sources it

https://www.theregister.com/ai-ml/2026/05/31/netflix-wiz-creates-app-to-slash-ai-bills-then-open-...
6•joebuckwilliams•29m ago•1 comments

The Authorization Paradox: Who Has the Keys to Your AI? [video]

https://www.youtube.com/watch?v=5UUpxgcGKXk
1•mooreds•32m ago•0 comments

San Francisco home accepts OpenAI, Anthropic stock as payment for $2.9M sale

https://cryptobriefing.com/san-francisco-home-accepts-ai-stock-payment/
1•petethomas•32m ago•0 comments

Phrases that need to die before I do

https://jerodsanto.net/2026/02/normalize-not-saying-this-stuff/
2•mooreds•33m ago•0 comments

Scaling Infrastructure as Code: 5 to 1k workspaces

https://www.ordisi.us/posts/2026_1_scaling/
2•mooreds•33m ago•0 comments

Rust Coreutils 0.9 Released with Additional Security Hardening, Zero-Copy I/O

https://www.phoronix.com/news/Rust-Coreutils-0.9
2•Bender•36m ago•0 comments