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

A declarative package management CLI tool for Arch Linux

https://gitlab.com/theblackdon/dcli
1•rmadriz•1m ago•0 comments

The Reason Claude Code Users Prefer the Terminal

https://elliot.my/claude-coder-users-prefer-the-terminal/
1•clowes•1m ago•0 comments

How Claude Code Works

https://code.claude.com/docs/en/how-claude-code-works
1•mfiguiere•1m ago•0 comments

The autonomous AI agent that does the work – for developers and non-developers

https://meetorion.app/
1•Kn1026•1m ago•1 comments

Show HN: I built a free tool for checking AI Visibility for your site

https://www.replyraptor.com/llm-ready/checker
1•zbruhnke•4m ago•0 comments

Improving the usability of C libraries in Swift

https://www.swift.org/blog/improving-usability-of-c-libraries-in-swift/
1•timsneath•6m ago•0 comments

Feasibility-Aware Exploration of Coarse-Grained Reconfigurable Architectures

https://www.mdpi.com/2079-9292/15/2/313
1•PaulHoule•8m ago•0 comments

SB138: State of Utah Mobile Operating System Designation

https://le.utah.gov/~2026/bills/static/SB0138.html
2•reaperducer•9m ago•0 comments

Consumer electronics are unique because they sit on a deeply modular foundation

https://www.a16z.news/p/everything-is-computer
1•walterbell•9m ago•0 comments

Proposal to add generic methods for Go

https://github.com/golang/go/issues/74675
1•meling•10m ago•0 comments

When two years of academic work vanished with one click (ChatGPT data consent)

https://www.nature.com/articles/d41586-025-04064-7
4•stmw•11m ago•1 comments

Django Orbit – A modern debugging and observability tool

https://github.com/astro-stack/django-orbit
1•hcham•13m ago•0 comments

1.8-3.3x faster Embedding finetuning now in Unsloth

https://unsloth.ai/docs/new/embedding-finetuning
3•electroglyph•14m ago•2 comments

OpenCode

https://opencode.ai
1•miohtama•16m ago•1 comments

Intel Tumbles After Manufacturing Snags Bedevil Comeback

https://www.bloomberg.com/news/articles/2026-01-22/intel-gives-weak-forecast-after-supply-shortag...
5•petethomas•19m ago•0 comments

Microsoft Edge Constantly at 100% CPU Usage on OS X

https://imgur.com/6Sowi8C
5•princevegeta89•19m ago•3 comments

Verizon completed its $20B acquisition of Frontier Communications

https://www.verizon.com/about/news/introducing-frontier-verizon-company
2•samgutentag•23m ago•0 comments

Ask HN: Have you managed to switch to Bluesky for tech people?

5•fuegoio•29m ago•8 comments

South Korea launches landmark laws to regulate artificial intelligence

https://www.japantimes.co.jp/business/2026/01/22/tech/south-korea-ai-startups-law/
4•anigbrowl•30m ago•0 comments

Multiclaude – Lightweight Multiagent Orchestrator

https://github.com/dlorenc/multiclaude
1•curmudgeon22•30m ago•0 comments

Amazon plans thousands more corporate job cuts next week, sources say

https://www.reuters.com/business/world-at-work/amazon-plans-thousands-more-corporate-job-cuts-nex...
11•austinallegro•33m ago•1 comments

FSNotes 7 – Remarkable fast plain text notes

https://fsnot.es/v7/
2•birdculture•33m ago•1 comments

EU Plans to Unfreeze Trade Deal with US and Vote on Ratification

https://www.bloomberg.com/news/articles/2026-01-22/eu-plans-to-unfreeze-trade-deal-with-us-and-vo...
3•alephnerd•34m ago•3 comments

SVG Path Editor

https://yqnn.github.io/svg-path-editor/
1•gurjeet•34m ago•0 comments

FIPS Dependencies and Prebuilt Binaries

https://www.docker.com/blog/fips-dependencies-and-prebuilt-binaries/
5•LaurentGoderre•36m ago•2 comments

Linum v2 - 2B parameter, Apache 2.0 licensed text-to-video models (360p, 720p)

https://www.linum.ai/field-notes/launch-linum-v2
1•samaysharma•37m ago•1 comments

Car insurance telematics: The privacy trade-off of OBD-II vs. Mobile Apps

https://suretyinsights.com/blog/dongle-vs-app-the-hardware-of-usage-based-insurance
3•insuranceguru•37m ago•0 comments

Joseph Wright of Derby – All Works

https://www.wikiart.org/en/joseph-wright/all-works
2•susam•38m ago•0 comments

Inspired by skin ligament for robotic face covered with living skin

https://www.cell.com/cell-reports-physical-science/fulltext/S2666-3864(24)00335-7
2•wjb3•39m ago•3 comments

Autodesk cuts 7% of workforce to redirect investments to AI, cloud

https://www.reuters.com/business/world-at-work/autodesk-lay-off-about-7-workforce-2026-01-22/
8•austinallegro•39m ago•1 comments