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

Show HN: Shelfarr is an open source audiobook renamer tool

https://github.com/VacantlyCrushing/Shelfarr
1•vcrushing•2m ago•0 comments

'The answer cannot be nothing': The battle over Canada's mystery brain disease

https://www.bbc.com/news/articles/c623r47d67lo
2•lewww•4m ago•0 comments

Will Rogers Phenomenon

https://en.wikipedia.org/wiki/Will_Rogers_phenomenon
2•samuel246•7m ago•0 comments

Show HN: Use Terraform to deploy to your TrueNAS homelab

https://github.com/deevus/terraform-provider-truenas
1•deevus•9m ago•1 comments

Ukraine's Quest to Build a Missile to Strike Deep in Russian Territory

https://www.wsj.com/world/inside-ukraines-quest-to-build-a-missile-to-strike-deep-in-russian-terr...
2•JumpCrisscross•10m ago•0 comments

Progressives Must Apologize (Before It's Too Late)

https://edokwin.substack.com/p/progressives-must-apologize-before
1•bold_italics•11m ago•0 comments

Which is "Bouba", and which is "Kiki"? [video]

https://www.youtube.com/watch?v=1TDIAObsqcs
1•basilikum•12m ago•1 comments

Universe Time Machine Using AI God and the Universe Internet

https://patents.google.com/patent/US20250238653A1/en
3•zdw•15m ago•0 comments

Show HN: Airboard – $1 voice dictation for Mac local

https://dhruvian473.gumroad.com/l/pgcjbc
1•mehrad_1•15m ago•0 comments

Ripple: The Elegant TypeScript UI Framework

https://jsdev.space/meet-ripple/
1•javatuts•16m ago•0 comments

Cecil Kelley Criticality Accident

https://en.wikipedia.org/wiki/Cecil_Kelley_criticality_accident
1•toomuchtodo•23m ago•0 comments

Millennium Prize Problem Bench

https://mppbench.com/
2•a_tartaruga•25m ago•0 comments

eBook: Wall Street Sold Out Main Street

https://www.founderstowne.com/
2•i_have_to_speak•30m ago•0 comments

My Home Fibre Network Disintegrated

https://alienchow.dev/post/fibre_disintegration/
1•alienchow•30m ago•0 comments

I Use Jujutsu

https://abhinavsarkar.net/posts/jj-usage/
2•vinhnx•31m ago•0 comments

AI Predicts Disease from One Night of Sleep

https://www.sciencedaily.com/releases/2026/01/260109023114.htm
1•phyzix5761•36m ago•1 comments

Best Practices for Reducing Dependabot Noise

https://nesbitt.io/2026/01/10/16-best-practices-for-reducing-dependabot-noise.html
1•todsacerdoti•38m ago•0 comments

SoundSlab: How It Started

https://craigjb.com/2026/01/10/soundslab-beginning/
1•ahlCVA•38m ago•0 comments

AI Consciousness: A Biological Perspective

https://substack.com/@cocakoala/note/p-184178209
1•imranmk•43m ago•1 comments

The Stranger You Can Trust

https://www.thefp.com/p/the-stranger-you-can-trust
1•gmays•47m ago•0 comments

Judging Books by Their Covers, Empirically

https://yakshed.com/books/
1•abound•50m ago•0 comments

Show HN: PrintReadyBook

https://printreadybook.com/
2•cboulio•53m ago•0 comments

I Built a 1 Petabyte Server from Scratch [video]

https://www.youtube.com/watch?v=vVI7atoAeoo
1•zdw•53m ago•0 comments

Q Source

https://en.wikipedia.org/wiki/Q_source
1•vinnyglennon•55m ago•0 comments

Lord's Prayer

https://en.wikipedia.org/wiki/Lord%27s_Prayer
1•vinnyglennon•55m ago•0 comments

Subagents, Commands and Skills Are Converging

https://vivekhaldar.com/articles/claude-code-subagents-commands-skills-converging/
1•gandalfgeek•55m ago•0 comments

Musk's X to open source new algorithm in seven days

https://www.reuters.com/business/media-telecom/musks-x-open-source-new-algorithm-seven-days-2026-...
3•maxloh•55m ago•1 comments

Show HN: UI testing using multimodal LLMs

https://kodefreeze.com
1•kodefreeze•1h ago•0 comments

San Jose Mayor: CA's proposed wealth tax push burden onto middle class families [video]

https://www.youtube.com/watch?v=muVVOjJsLG8
1•donsupreme•1h ago•0 comments

Max Payne – two decades later – Graphics Critique

https://darkcephas.blogspot.com/2021/07/max-payne-two-decades-later-graphics.html
2•davikr•1h ago•0 comments