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•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•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

Show HN: MCP tools do parallelize in Claude Code (study with raw data)

https://github.com/greynewell/mcp-serialization-repro
1•greynewell•1m ago•0 comments

Andrej Karpathy: New art project. Train and inference GPT in 243 lines

https://twitter.com/karpathy/status/2021694437152157847
1•kjhughes•1m ago•0 comments

JanetDocs – Community Documentation for Janet

https://janetdocs.org/
1•veqq•3m ago•0 comments

Short guide to 3D file formats: STL, OBJ, 3MF, STEP and the rest

https://modelrift.com/blog/3d-file-formats-explained/
1•jetter•3m ago•0 comments

A Language for Agents

https://lucumr.pocoo.org/2026/2/9/a-language-for-agents/
1•surprisetalk•4m ago•0 comments

The seam through the center of things

https://usefulfictions.substack.com/p/the-seam-through-the-center-of-things
2•surprisetalk•4m ago•0 comments

Sex Workers Are Built Different (Graph Dump)

https://aella.substack.com/p/sex-workers-are-built-different-graph
2•surprisetalk•4m ago•0 comments

Bicross

https://eli.li/bicross
2•surprisetalk•4m ago•0 comments

Global Trade Is Leaving the US Behind

https://www.bloomberg.com/opinion/articles/2026-02-12/on-trade-and-tariffs-the-world-is-moving-on...
1•wslh•7m ago•1 comments

Recursive Language Models: Stop Stuffing the Context Window

https://nlp.elvissaravia.com/p/recursive-language-models-stop-stuffing
1•omarsar•9m ago•0 comments

Gas Town, Beads, and the Rise of Agentic Development with Steve Yegge

https://softwareengineeringdaily.com/2026/02/12/gas-town-beads-and-the-rise-of-agentic-developmen...
1•kbal11•10m ago•0 comments

Scientists Figured Out the Problem with Johnson and Johnson's Covid Vaccine

https://www.theatlantic.com/science/2026/02/covid-vaccines-blood-clotting-answer/685966/
2•ceejayoz•11m ago•0 comments

Math and Me

http://togelius.blogspot.com/2026/02/math-and-me.html
1•qwertyforce•13m ago•0 comments

Lessons learned building ChatGPT Apps

https://developers.openai.com/blog/15-lessons-building-chatgpt-apps/
2•manikandaraj•16m ago•2 comments

Explanation of Thermopower in Metals [pdf]

https://www.fzu.cz/~knizek/pdf/Thermopower.pdf
1•joebig•17m ago•0 comments

Hnpes – Hacker News Previous Entry Search for Firefox and Chrome

https://github.com/lsferreira42/hnpes
1•lsferreira42•17m ago•0 comments

Amazon gets FCC approval to launch 4,500 Leo internet satellites

https://www.cnbc.com/2026/02/10/amazon-gets-fcc-approval-to-launch-4500-leo-internet-satellites.html
3•mooreds•17m ago•0 comments

Show HN: Generate Web Interfaces from Data

https://github.com/puffinsoft/syntux
3•Goose78•17m ago•0 comments

The Scottish island that bought itself

https://www.elysian.press/p/the-scottish-island-that-bought-itself
1•toomuchtodo•18m ago•1 comments

Southwest Swaps to Starlink

https://paxex.aero/southwest-swaps-to-starlink/
1•mooreds•18m ago•0 comments

Using Your Mac as a Remote Endless Working Agent with Moshi

https://getmoshi.app/articles/mac-remote-endless-agent-setup
1•mefengl•18m ago•0 comments

JupyterLite Officially Joins Project Jupyter

https://blog.jupyter.org/jupyterlite-officially-joins-project-jupyter-77df24c8db80
4•DerThorsten•19m ago•0 comments

How do I become a good writer?

https://ritza.co/handbook/improving-your-writing/how-do-I-become-a-good-writer/
1•mooreds•19m ago•0 comments

Show HN: Snapsell – AI-driven infrastructure for e-commerce optimization

https://snapsell.website
1•helia_ai•20m ago•0 comments

Show HN: Updated HyperUPnP TV App

https://github.com/zeet2020/HyperUpnp-TV
1•zeet2020•20m ago•0 comments

Are we becoming QA for the machine?

https://medium.com/@theRedbeardIO/are-we-becoming-qa-for-the-machine-9622ea6efdeb
1•theredbeard•21m ago•0 comments

Multi-omics analysis reveals oral microbiome-metabolome signatures of obesity

https://www.sciencedirect.com/science/article/pii/S2211124725015918
2•PaulHoule•21m ago•0 comments

Aligning brains into a shared space improves their alignment with LLMs

https://www.nature.com/articles/s43588-025-00900-y
4•tesserato•21m ago•1 comments

The problem with blaming 'ultra-processed' foods for obesity

https://greyenlightenment.com/2026/02/09/the-problem-with-blaming-ultra-processed-for-obesity/
1•paulpauper•23m ago•0 comments

Extractive Taxation and the French Revolution

https://www.nber.org/papers/w34816
2•paulpauper•23m ago•0 comments