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

Road to WWDC 2026: What's a developer?

https://sixcolors.com/post/2026/06/road-to-wwdc-2026-whats-a-developer/
1•mistersquid•36s ago•0 comments

Nvidia released Nemotron 3 Ultra, a new open model

https://developer.nvidia.com/blog/nvidia-nemotron-3-ultra-powers-faster-more-efficient-reasoning-...
1•acoye•2m ago•0 comments

Common Lisp bindings for brotli compression

https://codeberg.org/fsm/cl-brotli
1•fsmunoz•3m ago•1 comments

Unix, Everything Is a File

https://vivianvoss.net/blog/unix-everything-is-a-file
2•speckx•3m ago•0 comments

Map Age Guide

https://xkcd.com/1688/
1•taubek•3m ago•0 comments

How Long Does It Take to Plan a Bridge?

https://www.construction-physics.com/p/how-long-does-it-take-to-plan-a-bridge
1•crescit_eundo•4m ago•0 comments

Not the Same Kid

https://www.quarter--mile.com/Not-The-Same-Kid
2•surprisetalk•5m ago•0 comments

This Month in Agentic Coding: May 2026

https://www.agenticcodingweekly.com/p/acw-monthly-brief-may-2026
3•primaprashant•8m ago•0 comments

Google Employees Internally Share Memes About How Its AI Sucks

https://www.404media.co/google-employees-internally-share-memes-about-how-its-ai-sucks/
3•elorant•8m ago•0 comments

Show HN: Kyu Launcher – Roku Interface on Your Android and Google TV

https://kyulauncher.com/
2•avadhesh18•8m ago•0 comments

US tech sector cut 38,242 jobs in May, AI the most cited reason for layoffs

https://www.tomshardware.com/tech-industry/artificial-intelligence/tech-sector-cut-us-jobs-by-382...
4•heresie-dabord•9m ago•0 comments

SpaceX CFO presents business drivers

https://twitter.com/elonmusk/status/2062548455570985377
2•__patchbit__•9m ago•0 comments

Show HN: OMT – A simple Python CLI for testing local Ollama models

https://github.com/ulyssestenn/omt
2•bethanyhunt•11m ago•0 comments

Show HN: Mdrone – a microtonal drone instrument that runs in the browser

https://mdrone.org/
3•gizero•12m ago•1 comments

NASA Says Farewell to Maven Mars Mission

https://www.nasa.gov/news-release/nasa-says-farewell-to-maven-mars-mission-hosts-media-call-today/
3•the-mitr•12m ago•0 comments

Show HN: NeuroAnswer – MCP server lets Claude navigate petabyte-scale brain maps

https://github.com/cjmielke/NeuroAnswer
3•subcosmos•13m ago•0 comments

Several Injured in Boeing 787 Nose-Gear Collapse in Frankfurt

https://www.reuters.com/business/aerospace-defense/lufthansa-787-jet-suffers-front-wheel-collapse...
12•karakoram•13m ago•1 comments

The Age of Fast Food

https://www.abareplace.com/blog/ai_fastfood/
2•meysamazad•15m ago•0 comments

The LLM warnings Google fired Timnit Gebru over have all come true

https://www.tumblr.com/dreaminginthedeepsouth/817865966907228160/darren-oconnor-timnit-gebru-was-...
5•thdr•16m ago•0 comments

Show HN: Taliesin – bit-exact KV-cache restore, 21x faster, cross-GPU verified

https://medium.com/@sietse_92846/a-big-chunk-of-ai-cost-is-just-the-model-re-reading-the-same-tex...
2•Wetime•16m ago•0 comments

Neuron-CLI – A fast, single-binary knowledge management tool written in Go

https://github.com/steevin/neuron-cli
2•steevin•16m ago•0 comments

The right tool for thinking and writing

https://zerokspot.com/weblog/2026/06/01/right-tool-for-thinking-and-writing/
2•meysamazad•17m ago•0 comments

Simplex- Binomial Engine – O(1)HighDim Meshing, Projective Q‑Analogs, Q Decoding

https://www.tiktok.com/@charles.tibedo/photo/7647159449706040606?_r=1&_t=ZP-96v4VW3CSsB
2•GeometryKernel•18m ago•0 comments

How to design pricing for AI APIs and LLM-powered products

https://www.solvimon.com/blog/how-to-design-pricing-for-ai-apis-and-llm-powered-products
3•arnon•20m ago•1 comments

Partial static single information form

https://bernsteinbear.com/blog/partial-ssi/
2•surprisetalk•20m ago•0 comments

Speculative KV coding: losslessly compressing KV cache by up to ~4×

https://fergusfinn.com/blog/kv-entropy-coder/
2•kkm•21m ago•0 comments

StructArrays.jl

https://juliaarrays.github.io/StructArrays.jl/stable/
2•tosh•21m ago•0 comments

Show HN: Bit-banged 10BASE-T Ethernet and Wi-Fi router in Rust on the Pico 2 W

https://github.com/mattdeeds/pico-10base-t-rs
5•mdeeds•23m ago•0 comments

Google Is in Damage Control over Its New Health App

https://gizmodo.com/google-is-in-full-on-damage-control-over-its-new-health-app-2000764027
2•brandonb•23m ago•0 comments

Academic Freedom Is a National Security Imperative

https://www.usni.org/magazines/proceedings/2026/june/academic-freedom-national-security-imperative
3•throw0101c•23m ago•0 comments