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

No LLM, No training data, No cloud – Engine that understands architecture

1•twoelf•1m ago•0 comments

WebMCP: A Browser-Native Execution Model for AI Agents

https://insforge.dev/blog/webmcp-browser-native-execution-model-for-ai-agents
1•astro_09•2m ago•0 comments

Mini Claw Code – Write your own mini coding agent

https://github.com/odysa/mini-claw-code
2•agentforce•5m ago•0 comments

Show HN: X-Ray – Filter your X (Twitter) timeline by country

https://chromewebstore.google.com/detail/x-ray-block-tweets-by-rea/pmjfhfleckpdbhfblgeiihihddlbifaf
1•batudotpy•5m ago•0 comments

Estonias Tiger Leap: the schools project that wired a nation for the digital age

https://estonianworld.com/technology/estonias-tiger-leap-the-schools-project-that-wired-a-nation-...
1•atlasunshrugged•7m ago•0 comments

DHS pausing TSA PreCheck, Global Entry programs amid funding lapse

https://www.nbcnews.com/news/us-news/dhs-pausing-tsa-precheck-global-entry-programs-funding-lapse...
1•LopRabbit•9m ago•0 comments

Microsoft throws spox under the bus in ICC email flap

https://www.theregister.com/2026/02/18/microsoft_asks_uk_parliament_to_correct_record/
1•abdelhousni•10m ago•0 comments

U.S. Cannot Legally Impose Tariffs Using Section 122 of the Trade Act of 1974

https://ielp.worldtradelaw.net/2026/01/guest-post-president-trump-cannot-legally-impose-tariffs-u...
1•JumpCrisscross•11m ago•0 comments

Show HN: Fan Meter – A movie quiz game where you guess films from frames

https://fanmeter.in
2•raahelb•13m ago•3 comments

Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://gepa-ai.github.io/gepa/blog/2026/02/18/introducing-optimize-anything/
1•LakshyAAAgrawal•13m ago•1 comments

So Claude's stealing our business secrets, right?

3•arm32•14m ago•0 comments

Laws of Thermodynamics

https://en.wikipedia.org/wiki/Laws_of_thermodynamics
1•downboots•14m ago•0 comments

Giving Claude Code Eyes: Round-Trip Screenshot Testing

https://medium.com/@rotbart/giving-claude-code-eyes-round-trip-screenshot-testing-ce52f7dcc563
2•rotbart•15m ago•1 comments

We Have (Software) Replicators

https://schappi.com/blog/we-have-software-replicators
1•schappim•18m ago•0 comments

Iterflow – Composable streaming statistics for JavaScript/TS

https://www.npmjs.com/package/@mathscapes/iterflow
1•gvsh_maths•21m ago•1 comments

Show HN: Madari: CLI tool to install, sync and manage local MCP servers

https://github.com/ankitvg/madari/releases/tag/v0.1.1
1•rajma•21m ago•0 comments

Mathematics in the Library of Babel

https://www.daniellitt.com/blog/2026/2/20/mathematics-in-the-library-of-babel
1•owenpayton•22m ago•0 comments

Tech Influencers Slam Hacker News Toxicity After OpenAI Hire Attacks

https://x.com/i/trending/2025399179196203524
1•make_it_sure•24m ago•0 comments

HTTP/3 on FreeBSD: Getting QUIC Working with Nginx in a Bastille Jail

https://blog.hofstede.it/http3-on-freebsd-getting-quic-working-with-nginx-in-a-bastille-jail/
1•todsacerdoti•28m ago•0 comments

Ask HN: Is HN becoming more toxic?

3•make_it_sure•32m ago•2 comments

Show HN: TurboDraft – fast Ctrl-G prompt editor for Claude Code and Codex CLI

https://github.com/gradigit/turbodraft
2•gradigit•43m ago•0 comments

Built a Tinder-style investing app for all investors! Need 7-day beta testers

https://investswipe-demo-v1.vercel.app/
1•barelybushy•45m ago•1 comments

Show HN: Sketch Paint for Apple

https://apps.apple.com/us/app/sketch-paint/id6753883078
1•Codegres•46m ago•0 comments

DHS Will Suspend TSA PreCheck and Global Entry

https://www.washingtonpost.com/nation/2026/02/21/tsa-precheck-global-entry-shutdown/
2•jbegley•47m ago•2 comments

Welcome to the Era of Anarchic Antitrust

https://www.economist.com/business/2026/02/18/welcome-to-the-era-of-anarchic-antitrust
1•1vuio0pswjnm7•50m ago•0 comments

Show HN: LogSnap – CLI tool for analyzing logs locally

https://github.com/Sonic001-h/logsnap
1•baba_yaga070•52m ago•0 comments

Climate Physicists Face the Ghosts in Their Machines: Clouds

https://www.quantamagazine.org/climate-physicists-face-the-ghosts-in-their-machines-clouds-20260220/
1•tzury•54m ago•0 comments

Calculemus: Why policy has correct answers and nobody wants to find them

https://kunnas.com/articles/calculemus
1•ekns•57m ago•0 comments

Today is my last day at Anthropic

https://twitter.com/mrinanksharma/status/2020881722003583421
1•RyanShook•1h ago•1 comments

Testing the Pugilism Hypothesis for the Evolution of Human Facial Hair

https://pubmed.ncbi.nlm.nih.gov/33791549/
2•SEJeff•1h ago•0 comments