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

Guthrie video delayed by difficult data recovery, privacy advocates worry

https://www.reuters.com/world/guthrie-doorbell-video-delayed-by-difficult-data-recovery-privacy-a...
1•cobbzilla•43s ago•0 comments

Show HN: Ventoux – get insights into your FIT activities

https://codeberg.org/eikek/ventoux
1•eikek•2m ago•0 comments

Sammy Jankis – an autonomous agent by Jason Rohrer

https://sammyjankis.com/
1•jdietrich•8m ago•0 comments

Arrays in Forth

https://www.forth.org/svfig/Len/arrays.htm
2•tosh•10m ago•0 comments

Show HN: Claude Extender – Autonomous Agent Management for Claude Code

https://github.com/wbnns/cx
1•wbnns•12m ago•1 comments

Peloton Revenue Falls on Declining Subscriptions and CFO Leaves

https://www.wsj.com/business/earnings/peloton-revenue-falls-on-declining-subscriptions-as-cfo-lea...
1•KnuthIsGod•12m ago•0 comments

Lit: Version control where prompts are the source

https://clintonboys.com/projects/lit/
1•mtsolitary•13m ago•0 comments

AI CMO

https://ai-cmo.net/
1•lunaberry•14m ago•0 comments

Show HN: Minisft – from base model to chat model

https://github.com/onurkanbakirci/Llama-2-7b-oasst-sft
1•onurkanbkrc•15m ago•0 comments

The Sacred Ass Life Course

https://sacredass.com/
1•ZguideZ•15m ago•1 comments

Ask HN: What will Software Engineering evolve to?

1•lopespm•17m ago•0 comments

Willpower isn't a muscle - Here's a better way to think of it

https://psyche.co/ideas/no-willpower-isnt-a-muscle-heres-a-better-way-to-think-of-it
1•helloplanets•19m ago•0 comments

'medical freedom' fuels worst US measles outbreak in 30 years

https://www.reuters.com/business/healthcare-pharmaceuticals/doctors-bear-burden-medical-freedom-f...
1•u1hcw9nx•21m ago•1 comments

Show HN: Goutils – 70 type-safe generic functions for async/functional Go

https://github.com/skatiyar/goutils
2•skatiyar•22m ago•0 comments

A Veteran Teacher Shadows Two Students and Learns a Sobering Lesson

https://larrycuban.wordpress.com/2026/01/24/a-veteran-teacher-shadows-two-students-and-learns-a-s...
1•Tomte•22m ago•0 comments

Ask HN: How to control the sound volume on macOS with a SPDIF Adapter?

1•faebi•23m ago•0 comments

Learning nature's assembly language with polymers

https://www.pnas.org/doi/10.1073/pnas.2519094123
1•XzetaU8•27m ago•0 comments

What web businesses will continue to make money post AI?

2•surume•36m ago•2 comments

Changes in MySQL 9.6.0

https://dev.mysql.com/doc/relnotes/mysql/9.6/en/news-9-6-0.html
1•ksec•37m ago•0 comments

I was a dating coach, so I vibe-coded an app to replace myself

https://play.google.com/store/apps/details?id=com.tryagaintext.flirtfix&hl=en_IN
1•bhattattreya•38m ago•1 comments

Show HN: I built a leaderboard ranking AI products by Stripe payment traffic

https://aiboom.tools/ranking
1•HenryZheng99•41m ago•1 comments

FTC wants Apple News to promote more Fox News and Breitbart stories

https://arstechnica.com/tech-policy/2026/02/trump-ftc-denies-being-speech-police-but-says-apple-n...
2•rbanffy•43m ago•0 comments

Show HN: Goxe v1.3.1 Is Out

https://github.com/DumbNoxx/goxe
1•nxus_dev•44m ago•0 comments

Nothing Big Is Happening

https://twitter.com/basedtorba/status/2021985056118415661
1•MrBuddyCasino•44m ago•0 comments

AI Bubble Fears Are Creating New Derivatives

https://www.bloomberg.com/news/articles/2026-02-14/ai-bubble-fears-are-creating-new-derivatives-c...
2•koolhead17•47m ago•0 comments

How to Add DRM to Your Back End (Easy) [2026 Working]

https://maia.crimew.gay/posts/kinemaster-drm/
1•todsacerdoti•48m ago•0 comments

Two different tricks for fast LLM inference

https://www.seangoedecke.com/fast-llm-inference/
11•swah•51m ago•3 comments

MacKenzie Scott: college roommate loaned her $1000 to keep her from droping out

https://fortune.com/article/mackenzie-scott-roommate-loaned-her-1000-to-not-drop-out-inspired-26-...
1•gurjeet•53m ago•0 comments

Show HN: Retry script for Oracle Cloud free tier ARM instances

2•ekadet•54m ago•0 comments

Seedance 2.0: ByteDance's AI video model with native audio-video co-generation

https://medium.com/@channeler.h/seedance-2-0-bytedances-ai-video-model-that-generates-audio-and-v...
2•howardV•59m ago•0 comments