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

The Speed of Building Has Outpaced the Thinking Part

https://www.eliostruyf.com/killing-indie-development-with-ai/
1•estruyf•33s ago•1 comments

Show HN: Claude Rate Widget Native macOS Widget to Monitor Claude Code Limits

https://github.com/hulryung/cc-rate-widget
1•hulryung•2m ago•0 comments

Biggest Breakthroughs in Computer Science: 2025 [video]

https://www.youtube.com/watch?v=DFwppvrL_pE
1•jonbaer•2m ago•0 comments

Harmonic embeddings beat random init and work frozen – no tokenizer needed

https://github.com/atech-hub/Wave-Coherence-as-a-Computational-Primitive
1•atech-77•4m ago•0 comments

Show HN: SkillDeck – macOS app to manage skills across multiple AI agents

https://github.com/crossoverJie/SkillDeck
1•crossoverjie•4m ago•0 comments

How to talk to any GitHub repo

https://www.theaithinker.com/p/how-to-talk-to-any-github-repo
1•faikadam•5m ago•0 comments

Chrome broke my client's web app

https://www.codingwithjesse.com/blog/chrome-broke-my-clients-web-app/
1•CodingWithJesse•6m ago•0 comments

ByteDance to add safeguards to Seedance 2.0 following Hollywood backlash

https://www.cnbc.com/2026/02/16/bytedance-safegaurds-seedance-ai-copyright-disney-mpa-netflix-par...
1•hexage1814•7m ago•1 comments

A terminal puzzle game: falling blocks that turn into sand

https://github.com/Mjoyufull/Setrixtui
1•tosbourn•9m ago•0 comments

Evaluating AGENTS.md: are they helpful for coding agents?

https://arxiv.org/abs/2602.11988
1•mustaphah•9m ago•0 comments

Every 2s10s yield curve inversion since 1976, with recession lag times – CSV

https://eco3min.fr/en/yield-curve-inversion-history-2s10s-spread/
1•latentframe•11m ago•0 comments

An open-source AI browser agent [Yamak]

1•threos•13m ago•0 comments

Show HN: Is the "frozen weights" paradigm the main bottleneck for AGI?

https://github.com/8lamaster8/hybrid-ai-core/tree/master/autonomous_ai
1•8lamaster8•14m ago•0 comments

Hiding Information Inside Images

https://nullonerror.org/2026/02/13/hiding-information-inside-images/
2•ibobev•15m ago•0 comments

From Pixels to Raytracing – A 3D Rendering Engine Built with Claude Code

https://fersab.github.io/pixelforge/
1•fersab•16m ago•1 comments

SQL vs. NoSQL vs. Columnar: Choosing the Right Database for Your Go Service

https://skoredin.pro/blog/golang/sql-nosql-columnar-comparison
1•ibobev•16m ago•0 comments

Emacs Is a Fantasy Workstation

https://en.andros.dev/blog/6aba9431/emacs-is-a-fantasy-workstation/
1•ibobev•17m ago•0 comments

Does It Snow in X?

https://doesitsnowin.com/
2•ILoveHorses•17m ago•0 comments

Show HN: Logtide – Open-source log management and SIEM for European SMBs

https://github.com/logtide-dev/logtide
1•polliog•17m ago•0 comments

Flixa – MIT-licensed VS Code coding agent with a $4/mo plan

https://marketplace.visualstudio.com/items?itemName=deniai.flixa
1•imraicdev•18m ago•0 comments

Coastal Mountain Walks: Exploring Google Fit Data with Polars and Altair

https://exploring-data.com/story/coastal-mountain-walks/
3•yaph•18m ago•0 comments

Enter your budget first–then see what you can afford

https://www.pricematcher.net
1•Yugoleliatrope2•20m ago•0 comments

Ancient Linux distros you don't remember anymore

https://www.makeuseof.com/ancient-linux-distros-you-dont-remember-anymore/
2•rbanffy•21m ago•0 comments

Ask HN: Predictions on the state of theoretical STEM research post-AGI

1•expressrisk•23m ago•0 comments

Qwen3.5

https://huggingface.co/Qwen/Qwen3.5-397B-A17B
2•Jacques2Marais•23m ago•0 comments

The Israeli spyware firm that accidentally just exposed itself

https://ahmedeldin.substack.com/p/the-israeli-spyware-firm-that-accidentally
2•0x54MUR41•24m ago•0 comments

An AI CVE scanner that adjusts CVSS scores based on actual code usage

https://github.com/IzzyMaroder/contextual-cve-engine
1•izzymaroder•24m ago•1 comments

Show HN: Npx check-AI – check your repo for AI-readiness

https://github.com/f/check-ai
1•fka•25m ago•0 comments

Hardware TOTP authenticator with 8-layer security architecture (ESP32)

https://github.com/makepkg/SecureGen
1•todsacerdoti•26m ago•0 comments

Plan it, Work it, Review it, Reflect it

https://ai.unicrons.cloud/en/2026/02/15/plan-it-work-it-review-it-reflect-it/
1•ImSolar•26m ago•0 comments