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

VNX+: Self-contained RF payload for hosting AI/ML applications out of the box

https://epiqsolutions.com/products/sdr/vnx-development-platform
2•teleforce•6m ago•1 comments

Show HN: Gptbased – LLM leaderboard that emails you when to switch

https://gptbased.com
1•gptbased•10m ago•0 comments

Midjourney Ultrasonic CT Scanner

https://www.midjourney.com/medical/blogpost
6•lnyan•11m ago•1 comments

Learning VPP: Filtering Packets at 100GbE Line Rate

https://haryachyy.wordpress.com/2026/06/17/vpp-packet-filtering-100gbe-line-rate/
1•tanelpoder•11m ago•0 comments

Midjourney Medical

https://www.midjourney.com/medical
8•ricochet11•20m ago•3 comments

Next-Latent Prediction Transformers Learn Compact World Models

https://jaydenteoh.github.io/blog/2026/nextlat
1•sorenjan•21m ago•0 comments

Show HN: Local personal data redaction for any AI tools

https://github.com/sophia486/pii-gui
1•unusual_typo•27m ago•0 comments

Manhattan's fastest bike messenger (1985) [video]

https://www.youtube.com/watch?v=xMvJ83XpGoI
2•droidjj•27m ago•0 comments

Show HN: Draft, Open Source Agent Context Sync/Collaboration

https://github.com/idodekerobo/draft
1•idodekerobo•28m ago•0 comments

Vevey – AI game dev for kids to build games, together

https://www.vevey.ai/
1•dvdhutch•28m ago•0 comments

Code Intelligence MCP Server

https://github.com/DeusData/codebase-memory-mcp
3•vantareed•28m ago•0 comments

Show HN: Rank scratch tickets in your state by expected value

https://scratchstats.ai
1•nlenn618•32m ago•0 comments

Former Tesla Exec Is Building the Home Heat Pump Musk Promised

https://www.notateslaapp.com/news/4313/former-tesla-exec-is-building-the-home-heat-pump-musk-prom...
1•voisin•36m ago•1 comments

Miuse: Agents for Guidance with Physical Tasks

https://miuse.tech/
1•pratt3000•36m ago•1 comments

Show HN: A world cup app built by football lovers

https://testflight.apple.com/join/f4gKRZwr
1•bootsybus•42m ago•0 comments

Show HN: I built a smart screen recording macOS

https://screeen.co
1•vinzdg•43m ago•0 comments

Tim Cook warns Apple may raise prices as memory costs surge

https://www.businessinsider.com/macbook-iphone-apple-price-hike-tim-cook-2026-6
3•mgh2•43m ago•2 comments

Finent – A privacy-first budgeting app built around your payday

https://www.budgetwithfinent.com/
1•vexelior•50m ago•0 comments

Free calculators for creator income, freelance rates, AI tool ROI, and so on

https://richinto.com/
4•iplaypc•51m ago•0 comments

A Kamal wrapper for multiple apps on a single server

https://singleserver.com/
2•DVassallo•51m ago•0 comments

CVE-2026-23111: exploiting and detecting a nftables UAF born from a security fix

https://medium.com/@miggo-engineering/detecting-the-nftables-catchall-use-after-free-cve-2026-231...
2•rafaeldavidtin•55m ago•0 comments

Watch Baseball Games in Realtime in 8-Bit View

https://kottke.org/26/06/watch-baseball-games-in-realtime-in-8-bit-view
2•ohjeez•56m ago•1 comments

Ask HN: AI models are built on all of us, should their weights act like patents?

3•rhuber•56m ago•0 comments

Rust port of transformers (1M lines of code)

https://github.com/cool-japan/trustformers/tree/master
4•hardwaresofton•1h ago•1 comments

Show HN: An open source job search plugin for Claude Code

https://github.com/agent-data/job-search
5•jb_hn•1h ago•1 comments

Comparisons as Predictable as the Sunrise

https://pudding.cool/2026/05/similes/
3•zdw•1h ago•0 comments

New SOTA: TrustedRouter Fusion Beats Fable and Frontier

https://trustedrouter.com/blog/fusion-evals-open-source
3•amirhirsch•1h ago•1 comments

Ask HN: Has anyone had success with SBIR grants and what is the process like?

4•lyfeninja•1h ago•2 comments

Show HN: Lastwordonearth.com

https://lastwordonearth.com
3•hnrich•1h ago•5 comments

Second carcass-eating fly species cleared by FDA for maggot wound therapy

https://arstechnica.com/health/2026/06/second-carcass-eating-fly-species-cleared-by-fda-for-maggo...
3•Bender•1h ago•0 comments