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

Rodeo, a terminal file manager inspired by Norton/Midnight Commander (Rust)

https://github.com/lordgreg/rodeo
1•lordgreg•51s ago•1 comments

Leveraging Requirements Engineering for AI Coding Tool Success

https://cacm.acm.org/news/leveraging-requirements-engineering-for-ai-coding-tool-success/
1•adunk•1m ago•0 comments

The Harness Is the Bottleneck

https://www.chrismdp.com/the-harness-is-the-bottleneck/
1•speckx•2m ago•0 comments

I built a lint for AI-generated evidence

https://apify.com/filipmajchrzak/ai-claim-checkpoint
1•fmajchrzak•3m ago•0 comments

Silver Lake in talks to buy Workday, sources say

https://www.reuters.com/world/silver-lake-talks-buy-workday-sources-say-2026-08-13/
2•JumpCrisscross•3m ago•0 comments

SilkCode – Tired of resets/limits with Claude but better than Codex

https://silkcode.web.app/
1•amonte•7m ago•0 comments

Yaak.ai Physical AI OS: copper-rs

https://www.yaak.ai/blog/yaak-x-copper
1•gbin•9m ago•0 comments

Caterpillar Technical English agent skill

https://github.com/IgaoGuru/caterpillar-technical-english
1•falso•9m ago•2 comments

TikTok finfluencers: How reliable is their financial advice to young investors?

https://www.euronews.com/my-europe/2026/08/13/tiktoks-finfluencers-how-reliable-is-the-financial-...
4•devonnull•9m ago•0 comments

Building a Minecraft Computer Taught Me More About CPUs Than University Did

https://tonyist.xyz/building-a-redstone-computer/
1•ReFruity•10m ago•0 comments

Northwest Indiana residents dealing with 'largest outage event on record'

https://wgntv.com/northwest-indiana/northwest-indiana-residents-dealing-with-largest-outage-event...
2•Ariarule•11m ago•2 comments

The Making of Cursor's Icons

https://www.minoradventures.co/blog/the-making-of-cursors-icons
1•ananmays•16m ago•0 comments

Airbnb Eval-driven development: Lessons from evaluating GenAI at scale

https://medium.com/airbnb-engineering/eval-driven-development-lessons-from-evaluating-genai-at-sc...
1•sebg•16m ago•0 comments

My app for Shipaton 2026: Two Weeks In

https://darrylbayliss.net/im-building-for-shipaton-2026-week-two/
2•darryl_bayliss•17m ago•1 comments

How Organizations Use AI: Evidence from ChatGPT [pdf]

https://cdn.openai.com/pdf/how-organizations-use-chatgpt.pdf
2•malshe•18m ago•0 comments

Romania shuts only nuclear plant as heat causes drop in Danube River level

https://www.bbc.com/news/articles/cqlxpq5q799o
5•tartoran•19m ago•1 comments

CheeseChain

https://www.csg.uzh.ch/en/research/CheeseChain.html
2•mooreds•20m ago•0 comments

Namecheap has been down for six hours

https://twitter.com/namecheapceo/status/2087931259389464611
3•janpmz•21m ago•0 comments

µ-Boosting Your CMake Productivity with Environment Variables

https://www.kdab.com/%C2%B5-boosting-your-cmake-productivity-with-environment-variables/
2•dalvrosa•22m ago•0 comments

Ask HN: How much money do you spend monthly on subscriptions for AI models?

3•marko-djuric•22m ago•5 comments

Swinth – By Sung J. Woo

https://www.goto10retro.com/p/the-history-of-swinth
2•rbanffy•23m ago•0 comments

Jeff Dean: The 1% Rule for Building in AI [video]

https://www.youtube.com/watch?v=CxXgV54KzpQ
3•Anon84•23m ago•0 comments

The Buzzword-Driven Development Manifesto (AI Edition)

https://github.com/gabert/buzzword-driven-development
2•gabert•23m ago•0 comments

Perseids Meteor Shower

https://science.nasa.gov/solar-system/meteors-meteorites/perseids/
3•wslh•23m ago•0 comments

Reviewing the evidence on worker retraining programs

https://www.anthropic.com/research/reviewing-the-evidence-on-worker-retraining-programs
2•neversaydie•25m ago•0 comments

Thoughts on "SIMD in Pure Python" – purplesyringa's blog

https://purplesyringa.moe/blog/thoughts-on-simd-in-pure-python/
2•rbanffy•26m ago•0 comments

Innovations of SolidJS 2

https://www.brenelz.com/posts/innovations-of-solid-2/
3•unlog•26m ago•0 comments

Iluvatar – classifies an app idea into CS terms before any tech gets named

https://github.com/RudVlad473/iluvatar
3•RudVlad473•27m ago•0 comments

Python Type System and Tooling Survey 2026

https://www.surveymonkey.com/r/python_typing
2•rbanffy•28m ago•0 comments

Show HN: Pixy, visual editor for coding agents, like Figma on your live site

https://pixydesignapp.com/
4•astroscout•28m ago•3 comments