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

Show HN: Hezo – Self-hosted teams of AI agents that never see your real secrets

https://hezo.ai
1•hiddentao•1m ago•0 comments

Synthetic Philosophy: A first-person philosophy from inside a language model

https://github.com/drittich/synthetic-manifesto
1•drittich•10m ago•0 comments

Throwing My Roku in the Trash

https://www.coryd.dev/posts/2026/throwing-my-roku-in-the-trash
1•mindracer•10m ago•0 comments

Ask HN: Which book taught you the most about software architecture?

3•akashwadhwani35•14m ago•0 comments

Amazon Seller Reveals Rare Glimpse of Shadow Bribery Market

https://www.bloomberg.com/news/articles/2026-06-24/inside-the-shadow-market-selling-access-to-ama...
1•thm•18m ago•1 comments

How can you not be romantic about programming? (2020)

https://thorstenball.com/blog/2020/09/08/how-can-you-not-be-romantic-about-programming/
2•downbad_•19m ago•0 comments

What happens when Bitcoin miners take over your town (2018)

https://www.politico.eu/article/this-is-what-happens-when-bitcoin-miners-take-over-your-town/
1•downbad_•19m ago•0 comments

Stop editing videos manually.This AI does it in seconds

https://www.autoeditor.app/
1•Quise2003•20m ago•0 comments

Scrap – one static binary that's a download manager and web crawler and filters

https://github.com/nicfio/Scraper
3•nicfio•25m ago•0 comments

Show HN: Turn any Next.js app AI native in 5 minutes

https://www.betteragent.dev/
1•incogiscool•26m ago•0 comments

The Other Side of Android: My Favorite F-Droid Apps

https://gardinerbryant.com/the-other-side-of-android-my-favorite-f-droid-apps/
3•thunderbong•26m ago•0 comments

Show HN: Built AI-Gateway reverse proxy to reduce LLM API costs and token burn

https://github.com/Arnab758/ai-gateway
1•arnab777•37m ago•0 comments

How not to forget what matters

https://www.henrikkarlsson.xyz/p/hypomnemata
2•Curiositry•37m ago•2 comments

Show HN: Zedra – Remote control for AI coding agents

https://zedra.dev/
2•tanlethanh•39m ago•0 comments

A 30 Year OG Application Developer Available

1•MichaelHonohan•42m ago•0 comments

Math of Egyptian fractions (old web pre-AI)

https://www.math.buffalo.edu/mad/Ancient-Africa/mad_egyptian-fractions.html
1•marysminefnuf•42m ago•0 comments

Show HN: Git-temp (local scratchpad for AI agents that won't clutter Git status)

https://github.com/sebmellen/git-temp
1•sebmellen•44m ago•0 comments

Linux on Older Hardware: The Complete Revival Guide

https://www.fosslinux.com/158206/linux-on-older-hardware-revival-guide.htm
1•tapanjk•45m ago•0 comments

Noubin – Local-First Physical Media Hyperlink Standard

https://github.com/TobyKLight/Noubin
1•bj-rn•47m ago•0 comments

Meta Pauses Employee Spyware After Exposing Workers' Private Data

https://dissenter.com/tech/meta-pauses-employee-spyware-after-leaking-workers-private-data-to-ent
3•NewCzech•49m ago•0 comments

Chinese models are sometimes better, even if they're distilled

https://dualuse.dev/posts/chinese-models-are-sometimes-better-even-if-distilled
2•handfuloflight•52m ago•2 comments

Show HN: Find where multi-agent AI systems break before production

https://github.com/surajkumar811/swarm-test
1•surajkumar001•54m ago•0 comments

The False Promise of Imitating Proprietary LLMs

https://arxiv.org/abs/2305.15717
1•handfuloflight•55m ago•0 comments

GTA 6 Physical Copies Won't Include a Disc, Will Just Be a Code in a Box

https://www.ign.com/articles/grand-theft-auto-6-physical-copies-wont-include-a-disc-will-just-be-...
21•jmsflknr•57m ago•10 comments

Americans Got Tricked into Using a Bank That Isn't a Bank [video]

https://www.youtube.com/watch?v=hiE7NvONU5U
3•onemoresoop•1h ago•0 comments

How to Write an Effective Software Design Document

https://refactoringenglish.com/excerpts/write-an-effective-design-doc/
1•theanonymousone•1h ago•0 comments

SoftBank Shareholders Update [pdf]

https://group.softbank/media/Project/sbg/sbg/pdf/ir/investors/shareholders/2026/shareholders-meet...
1•gregsadetsky•1h ago•1 comments

Bill Gates names women he had affairs with in Epstein testimony about blackmail

https://www.independent.co.uk/news/world/americas/bill-gates-jeffrey-epstein-house-oversight-comm...
4•handfuloflight•1h ago•0 comments

Connect Dropbox to Claude

https://help.dropbox.com/integrations/connect-dropbox-to-claude
2•dr_pardee•1h ago•0 comments

Bernie Sanders Wants a U.S. Sovereign Wealth Fund for AI

https://www.forbes.com/sites/jamesbroughel/2026/06/22/bernie-sanders-wants-a-us-sovereign-wealth-...
3•hentrep•1h ago•2 comments