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

Anthropic Donated to Linux Agenic AI Foundation(AAIF)

https://aaif.io/
1•zkitty•1m ago•1 comments

LastPass fined £1.2M by ICO for data breach

https://ico.org.uk/about-the-ico/media-centre/news-and-blogs/2025/12/password-manager-provider-fi...
1•edent•2m ago•0 comments

Show HN: Skyulf – Open-source, self-hosted MLOps platform

https://github.com/flyingriverhorse/Skyulf
1•flyingriverhrse•2m ago•0 comments

A Wireless Camera Inside a Walnut [video]

https://www.youtube.com/shorts/WvDJVN51uvA
1•thunderbong•4m ago•0 comments

Vacuum Is a Lie (About Your Indexes)

https://boringsql.com/posts/vacuum-is-lie/
1•radimm•5m ago•0 comments

Show HN: Kirkify – AI Face Swap for Charlie Kirk Memes

https://kirkify.uk
1•951560368•5m ago•0 comments

You find, we'll shred: how orcas and dolphins hunt salmon as a team

https://www.thetimes.com/uk/science/article/orcas-dolphins-filmed-collaborating-first-time-hunt-d...
1•petethomas•6m ago•0 comments

State of Haskell Survey 2025

https://www.surveymonkey.com/r/6M3Z6NV
1•mchav•6m ago•0 comments

Coach Claude

https://github.com/ClutchEngineering/coach-claude
1•handfuloflight•7m ago•0 comments

Guernsey group backs Australia-style teen social media ban

https://www.bbc.com/news/articles/ce8nzmrnpn1o
1•divbzero•8m ago•0 comments

Logo87.com – Create Impressive Favicons in Seconds

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

Shopify's first party SimGym app simulates buyer behavior with AI

https://apps.shopify.com/simgym
1•joos3•10m ago•0 comments

AI Voice Cloning

https://aivoicecloning.net
1•jiangyifeng•13m ago•1 comments

I cannot believe this, that's so helpful OMG

1•peterbricks•16m ago•0 comments

Shopify Edition Winter 2026

https://www.shopify.com/editions/winter2026
1•samuel246•17m ago•0 comments

Show HN: HarisLab – 30 Free Online Tools (Base64, IP Lookup, PDF Tools)

https://harislab.tech/
1•Haris18•18m ago•0 comments

Reddit files lawsuit against Australia's youth social media ban

https://www.cbc.ca/news/world/reddit-lawsuit-austalia-social-media-ban-9.7012795
1•empressplay•19m ago•1 comments

"Are you the one?" is free money

https://blog.owenlacey.dev/posts/are-you-the-one-is-free-money/
1•samwho•20m ago•1 comments

Thoughts on Cursor

1•grandimam•21m ago•0 comments

Show HN: Smart Photo Finder – Semantic photo search, not filename(100% local AI)

https://github.com/Pankaj4152/smart-photo-finder
1•Pankaj4152•21m ago•0 comments

Skydiver suspended below jump aircraft's tailplane after incident

https://www.atsb.gov.au/media/news-items/2025/skydiver-suspended-below-jump-aircrafts-tailplane-a...
1•mcraiha•21m ago•0 comments

Send a vintage Christmas postcard for free to any Indian address

1•shajanjp•21m ago•0 comments

Nothing prepares you for a high-stakes meeting like a low-stakes catastrophe

https://mikajovicic.com/writing/spilled-coffee-helped-me-to-establish-partnership/
1•violinar•25m ago•0 comments

How I use my Blackberry Q10 in 2025

https://harssh.substack.com/p/how-i-use-my-blackberry-q10-in-2025
1•harhargange•26m ago•0 comments

The stacking workflow

https://www.stacking.dev/
1•saikatsg•29m ago•0 comments

Leaderboard where micro-SaaS launches get seen

https://launchrank.app
1•usegrand•31m ago•1 comments

With Three Weeks Left, DJI Issues Last Plea for US to Start Its Mandated Audit

https://petapixel.com/2025/12/05/with-three-weeks-left-dji-issues-last-plea-for-us-to-start-its-m...
2•PaulHoule•39m ago•0 comments

Why Enterprises Need Evidential Control of AI Mediated Decisions

https://zenodo.org/records/17906869
1•businessmate•39m ago•1 comments

OpenAI opens internal merch store to the public

https://supply.openai.com
1•joos3•39m ago•0 comments

The Bay Area's longest-running morning news anchor is off the air. Here's why

https://www.sfgate.com/sf-culture/article/bay-area-morning-news-anchor-off-air-21237781.php
2•iancmceachern•42m ago•1 comments