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

Cardboard Crack: What Card Games Teach Us About Addiction

https://journalixm.com/2023/06/28/cardboard-crack-what-card-games-teach-us-about-addiction/
1•SchwKatze•29s ago•0 comments

Anonisor – Brings Trust to anonymous contributions

1•octate•2m ago•1 comments

Loneliness is a design flaw, not a character flaw

https://openenough.com
1•truenfel•6m ago•0 comments

An Alpha Channel for Prediction Traders

https://www.predictorer.club/
1•mattmerrick•8m ago•0 comments

Show HN: Intentify – annotate –> preview –> code generation

https://intentify.dev
1•slad•11m ago•0 comments

HN Reposted – multiple posts about the same thing

https://hn-related.dosaygo.com/?sort=discussions&p=1
1•keepamovin•11m ago•0 comments

Ask HN: How have you been tracked validated learning?

2•localeyes•18m ago•1 comments

Generative Pen-Trained Transformer

https://theodore.net/projects/Polargraph/
1•Twarner•18m ago•0 comments

Show HN: Built AI Music Generator Using Claude 4.5 and 4.6

https://trymusic.ai
1•mr_windfrog•20m ago•0 comments

How a software meltdown will shake private markets

https://www.reuters.com/commentary/breakingviews/how-software-meltdown-will-shake-private-markets...
4•petethomas•23m ago•3 comments

Mind the GAAP Again

https://blog.dshr.org/2026/02/mind-gaap-again.html
2•eripen•26m ago•0 comments

10 months since the Llama-4 release: what happened to Meta AI?

1•Invictus0•28m ago•1 comments

Show HN: An LLM-enabled bash-based shell for Linux

https://yoshell.ai/
1•pizlonator•31m ago•0 comments

Volkswagen overtook Tesla as Europe's top EV seller in 2025

https://www.reuters.com/business/autos-transportation/volkswagen-overtook-tesla-europes-top-ev-se...
4•_fizz_buzz_•34m ago•0 comments

OpenAI and Anthropic go to war: Claude Opus 4.6 vs. GPT 5.3 Codex

https://www.latent.space/p/ainews-openai-and-anthropic-go-to
3•swyx•35m ago•0 comments

Extension to Fix YT Background Play

https://microsoftedge.microsoft.com/addons/detail/keepbackplay/dgcbepoghjphcihldlmiaefeadookoff
1•carlosj•38m ago•1 comments

Overseas transfer of map data could cost Korea up to $136B, study warns

https://www.koreaherald.com/article/10669626
1•e2e4•43m ago•0 comments

'Ripping' Clips for YouTube Reaction Videos Can Violate the DMCA, Court Rules

https://torrentfreak.com/ripping-clips-for-youtube-reaction-videos-can-violate-the-dmca-court-rules/
3•mikhael•44m ago•0 comments

I2P is currently facing an ongoing attack on its network

3•cyllek•45m ago•0 comments

Digging into UUID, ULID, and implementing my own

https://atlas9.dev/blog/id-type.html
1•buchanae•49m ago•0 comments

Our Kona EBM a 96% vs. 2% Sudoku Benchmark

https://logicalintelligence.com/blog/energy-based-model-sudoku-demo
1•jz391•52m ago•0 comments

I Gave Claude Code Infinity Gauntlet of LLMs

https://github.com/Pickle-Pixel/HydraMCP
2•picklepixel•54m ago•4 comments

Rdrama Down for the last 2 days

1•BWC_profile_GIF•1h ago•0 comments

I shipped 706 commits in 5 days with Taskwarrior and Claude Code

1•neilbb•1h ago•2 comments

' injection' claims in ski jump competition investigation by WADA

https://www.theguardian.com/sport/2026/feb/05/penis-injection-doping-claims-in-winter-olympics-sk...
3•anigbrowl•1h ago•2 comments

Corpus Lifetime free. Track gold, stocks, mutualfunds and net worth in one place

https://icorpus.vercel.app/
1•mathan_karthik•1h ago•0 comments

Show HN: TabAny – Start AI chats from text boxes, enables quick translations

https://www.tabany.app/
1•sally-suite•1h ago•0 comments

rsync.net is down

https://www.rsync.net/
1•gurjeet•1h ago•1 comments

Study: Meta AI model can reproduce almost half of Harry Potter book

https://arstechnica.com/features/2025/06/study-metas-llama-3-1-can-recall-42-percent-of-the-first...
1•throwoutway•1h ago•0 comments

Built a desktop assistant [fully local] for myself without any privacy issue

1•surajkumar5050•1h ago•5 comments