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

Show HN: Fast-resume: a TUI to index and fuzzy search coding agent sessions

https://github.com/angristan/fast-resume
1•angristan•3m ago•0 comments

The Value of Things

https://journal.stuffwithstuff.com/2026/01/24/the-value-of-things/
2•vinhnx•9m ago•0 comments

Nvidia PersonaPlex: Natural Conversational AI with Any Role and Voice

https://research.nvidia.com/labs/adlr/personaplex/
2•wiradikusuma•11m ago•0 comments

Patterns in Konnakol

https://algorithmicpattern.org/patterns-in-konnakol/
3•rajangdavis•12m ago•0 comments

Show HN: Stack Photos – Capture the same place over time and create timelapses

https://stack.photos
2•NeroWolfe•19m ago•0 comments

Lnxqd Regulatory Status (2026 Update): What the Public Records Show

2•Kangaroo_•20m ago•0 comments

Rekko – Recover failed Stripe payments with automated SMS/email

https://rekko.io
3•AlexRST•23m ago•1 comments

Insurance and Climate Risk: From Coverage to Catalyst

https://insurtechamsterdam.com/public/blog/insurance-climate-risk
2•Venesha•27m ago•0 comments

From Strategy to Execution: Building an AI Technology Plan That Works

https://insurtechamsterdam.com/public/blog/building-technology-plan-for-insurers
2•Venesha•28m ago•0 comments

What Are Managing General Agents (MGAs)?

https://insurtechamsterdam.com/public/blog/MGA-Managing-General-Agents-Dutch-Insurance
1•Venesha•29m ago•0 comments

MyBB Docker image with runtime version selection

https://github.com/visualcookie/mybb
1•visualcookie•29m ago•0 comments

Show HN: I built a free macOS menu bar app to track Claude usage

https://www.claudeusagebar.com/
1•Artzain•31m ago•0 comments

A Year of Building Uncloud

https://psviderski.substack.com/p/a-year-of-building-uncloud
2•valyala•36m ago•0 comments

Show HN: Notes from building a startup, shared openly

https://www.chiefletter.com/
7•iamvdev•39m ago•0 comments

Responsibility and Authority

https://functional.computer/blog/responsibility-and-authority
1•mefengl•39m ago•1 comments

Replaced Clay.com with Claude Code Agent

https://github.com/chaitanyya/sales
4•chaitanyya•46m ago•0 comments

Agents.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
3•birdculture•48m ago•1 comments

The "Roof of the World," in eight simple lines

https://bigthink.com/strange-maps/roof-of-the-world-map/
2•koolhead17•57m ago•0 comments

In Defense of 'Mantissa'

https://geometrian.com/projects/blog/in-defense-of-mantissa.html
5•enz•57m ago•1 comments

Why is the S combinator an S?

https://blog.plover.com/2021/08/28/
4•fanf2•58m ago•0 comments

Nifty Gateway, One of the oldest NFT trading platform shuts down

https://www.coindesk.com/business/2026/01/24/one-of-the-oldest-nft-trading-platform-which-facilit...
4•thm•1h ago•0 comments

Accept_language 2.2 – RFC 7231/4647 compliant Accept-Language parsing for Ruby

https://github.com/cyril/accept_language.rb
3•cyrilllllll•1h ago•0 comments

Leader of the Snack: How Mars became a food behemoth

https://www.rte.ie/news/business/2026/0125/1554807-mars-bars-chocolate/
4•austinallegro•1h ago•0 comments

How would you approach long term data acquisition from real estate platforms?

2•ashi-sal•1h ago•0 comments

My Claude Code Psychosis – By Jasmine Sun

https://jasmi.news/p/claude-code
3•doppp•1h ago•0 comments

The Uncomfortable Truths About Immigration

https://alexanderkustov.substack.com/p/the-uncomfortable-truths-about-immigration
4•barry-cotter•1h ago•0 comments

Video contradicts Trump's claim man killed in Minneapolis was a 'gunman'

https://www.theguardian.com/us-news/2026/jan/24/minneapolis-shooting-ice
28•gizzlon•1h ago•0 comments

From –$20k to $400k in a year. My LLM options trading experiment

https://scriptedalchemy.medium.com/from-20k-to-400k-in-a-year-my-llm-options-trading-experiment-1...
3•gionn•1h ago•1 comments

Jurassic Park - Tablet device on Nedry's desk? (2012)

https://www.therpf.com/forums/threads/jurassic-park-tablet-device-on-nedrys-desk.169883/
11•exvi•1h ago•0 comments

Raise Animals – Unblocked Free Game, Roblox Game Guide, Codes

https://raiseanimals.run/
2•mumuchen•1h ago•0 comments