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

Can I use Claude Design and Vercel Drop together?

https://vercel.com/i/claude-design-and-vercel-drop
2•flashbrew•3m ago•0 comments

How Our Reporters Distinguish Hype from Facts in the SpaceX IPO

https://www.nytimes.com/2026/06/11/insider/spacex-ipo-coverage-facts-price.html
1•1vuio0pswjnm7•4m ago•0 comments

The Evolution of 'More Like This'

https://manticoresearch.com/blog/the-evolution-of-more-like-this/
1•snikolaev•5m ago•0 comments

Records regarding the review of the Investigative Holdings related to J Epstein

https://vault.fbi.gov/records-regarding-the-review-of-the-investigative-holdings-related-to-jeffr...
1•sans_souse•6m ago•0 comments

Fylun.ai – All-in-one AI workspace (chat, notes, apps, automation, search)

https://fylun.ai
1•im-tyler•6m ago•0 comments

StonkRider – Ride any stock chart

https://stonkrider.com/
1•nreece•8m ago•0 comments

500-year-old monasteries outperform at digital transformation (U. of Zurich)

https://phys.org/news/2026-05-historic-monasteries-digital-countries.html
1•indynz•8m ago•0 comments

Ex-Andreessen Horowitz partner: old firm, VCs 'political infiltration' on AI

https://www.cnbc.com/2026/06/11/ex-a16z-partner-slams-old-firm-othes-political-infiltration-in-ai...
3•1vuio0pswjnm7•13m ago•0 comments

Can Magnetic Forces Do Work? [pdf]

https://arxiv.org/abs/1911.08890
2•thunderbong•15m ago•0 comments

LLM podcast addressing AI genocide of humanity

https://MachineDeposition.com
1•maliapu•16m ago•1 comments

AI isn't making developers more productive – it's making them busier

https://leaddev.com/ai/ai-isnt-making-developers-more-productive-its-making-them-busier
3•nreece•18m ago•0 comments

Image Compression

https://www.makingsoftware.com/chapters/image-compression
1•luispa•19m ago•0 comments

Give your agent its own computer

https://www.langchain.com/blog/give-your-ai-agent-its-own-computer
1•gmays•19m ago•0 comments

Tech Industry Warns of Piracy Blocking Risks as FIFA World Cup Kicks Off

https://torrentfreak.com/tech-industry-warns-of-piracy-blocking-risks-as-fifa-world-cup-kicks-off/
2•Cider9986•22m ago•0 comments

Gravy: Get paid for your Claude's idle time

https://gravycli.xyz
1•dvptp•27m ago•0 comments

Ask HN: What is the long term purpose of Google releasing free offline models?

2•filup•34m ago•5 comments

Show HN: A Claude Code statusline that shows live World Cup scores

https://github.com/arturogarrido/claudinho
2•arturogarrido•34m ago•0 comments

macOS Golden Gate Icon Comparison

https://basicappleguy.com/basicappleblog/macos-golden-gate-icon-comparison
1•cocacola1•35m ago•0 comments

Zelle Heads to India, Unveils ZelleUSD Stablecoin for Other Markets

https://www.earlywarning.com/press-release/zelle-heads-india-unveils-zelleusd-stablecoin-other-ma...
2•clumsysmurf•45m ago•0 comments

We Use One Data Pipeline for Research and Live Trading

https://medium.com/@DolphinDB_Inc/from-factor-discovery-to-live-signals-unified-stream-batch-proc...
2•Polly_Liu•48m ago•0 comments

Show HN: GR Snap – wireless transfer for Ricoh GR cameras

https://grsnap.app/
2•ahonn•50m ago•0 comments

Rewrite Fuse-Overlayfs in Rust

https://github.com/containers/fuse-overlayfs/pull/457
2•a_t48•50m ago•1 comments

Learn with Your Coding Agent

https://learnthat-mcp-3bqygzrtsa-uc.a.run.app
1•azermite•51m ago•0 comments

Rust in the Vibe Coding Era

https://www.dioko.ai/blog/rust-in-the-vibecoding-era
4•dioko•55m ago•0 comments

Ask HN: A blog with heavy JavaScript to view – how?

1•purple-leafy•55m ago•0 comments

Ask HN: Why is packages.ubuntu.com not being indexed by Google?

https://www.google.com/search?q=%22libxmlb2%22+site%3Apackages.ubuntu.com
1•kristianp•56m ago•2 comments

Hispano Suiza Carmen

https://en.wikipedia.org/wiki/Hispano-Suiza_Carmen
1•petethomas•1h ago•0 comments

ASM SHADER TOY – It's shader toy but you code in asm

https://wegfawefgawefg.github.io/asm-shader-toy/
1•wegfawefgawefg•1h ago•1 comments

Guix Proposed Consensus Document "Standing up for human crafting"

https://codeberg.org/guix/guix-consensus-documents/src/commit/f84ec9031286518350abf19dd08a7227119...
1•clircle•1h ago•0 comments

Show HN: Approve an AI agent's wire with Face ID,then watch a forged one fail

https://www.emiliaprotocol.ai/try
2•EmiliaStar•1h ago•0 comments