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: Decision Audit – A deterministic decision engine for career pivots

https://decide.trk7.app/intake/should-i-quit
1•cosmok•3m ago•0 comments

Take photos with scotch tape, not lens

https://www.youtube.com/watch?v=97f0nfU5Px0
1•gsf_emergency_6•4m ago•0 comments

Show HN: Give a Voice to Your AI Agent

https://fellowgeek.github.io/mcp-speak/
1•pcbmaker20•6m ago•0 comments

Interview with CEO of rsync.net: "no firewalls and no routers" (2021)

https://web.archive.org/web/20210318194443/https://console.dev/qa/rsync-john-kozubik/
1•gurjeet•9m ago•0 comments

TextBar – tiny app that lets you add any text to macOS menu bar

https://github.com/richie5um/TextBar
1•gurjeet•9m ago•0 comments

Exploring Rust Traits

https://beej.us/blog/data/rust-trait-impl/
1•vinhnx•18m ago•0 comments

Aristotle and the so-called Tragic Flaw

https://jonathanbate.substack.com/p/aristotle-and-the-so-called-tragic
1•B1FF_PSUVM•20m ago•0 comments

Show HN: Letta – Git-Based Memory for Coding Agents

https://www.letta.com/
1•morawr•21m ago•0 comments

Mimir: GPU Computational Kernels in Rust

https://github.com/ccleavinger/mimir
1•cjcleav•22m ago•1 comments

Show HN: Generate unique icon sets and extend them later in the same style

https://iconsmint.com
1•tommydolso•23m ago•0 comments

Quamina and Claude, Case 1

https://www.tbray.org/ongoing/When/202x/2026/02/06/Q-Plus-C-Ch1
1•zdw•25m ago•0 comments

Show HN: Quoracle: Self-replicating multi-LLM-consensus agents (Elixir)

https://github.com/shelvick/quoracle
1•shelvick•29m ago•1 comments

Our security auditor is an idiot. How do I give him the information he wants?

https://serverfault.com/questions/293217/our-security-auditor-is-an-idiot-how-do-i-give-him-the-i...
3•gurjeet•31m ago•1 comments

Maryland faces another spate of viral infections. This time it's mumps

https://www.thebanner.com/community/public-health/mumps-measles-vaccinations-infections-4DQODQEXB...
2•cdrnsf•33m ago•0 comments

The Debacle That Led to the Closure of El Paso's Airspace

https://www.nytimes.com/2026/02/14/us/politics/el-paso-airspace-closure-faa-pentagon.html
9•bahmboo•37m ago•2 comments

The Myth of Technological Unemployment (2017)

https://reason.com/2017/07/11/the-myth-of-technological-unem/
1•johntfella•43m ago•0 comments

MythConceptions – Most Contagious Falsehoods

https://informationisbeautiful.net/visualizations/common-mythconceptions/
1•vismit2000•47m ago•0 comments

Guitars of the USSR and the Jolana Special in Azerbaijani Music

https://caucascapades.wordpress.com/2012/06/14/guitars-of-the-ussr-and-the-jolana-special-in-azer...
2•bpierre•48m ago•0 comments

Coding Adventure: Rendering Text [video]

https://www.youtube.com/watch?v=SO83KQuuZvg
1•vinhnx•51m ago•0 comments

AXS-6: Adaptive EXponent Sharing – 6-Bit Training Format

https://github.com/bwiemz/axs-6
2•AkaiNa•52m ago•1 comments

Advice for amateur mathematicians on writing and publishing papers

https://cohn.mit.edu/advice/
1•paulpauper•55m ago•0 comments

The Myth of Nordic Mobility: Social Mobility Rates in Modern Denmark and Sweden

https://link.springer.com/article/10.1057/s41294-025-00267-z
3•paulpauper•56m ago•0 comments

Who pays the price for Pakistan's new solar regime?

https://www.dawn.com/news/1972275
1•paulpauper•56m ago•0 comments

Grep by Example: Interactive Guide

https://antonz.org/grep-by-example/
2•vinhnx•56m ago•0 comments

Massive Precut Stone

https://en.wikipedia.org/wiki/Massive_precut_stone
2•scythe•57m ago•0 comments

Musk's AI chatbot Grok gains US market share amid sexualized images backlash

https://www.reuters.com/business/media-telecom/musks-ai-chatbot-groks-us-market-share-jumps-amid-...
4•petethomas•1h ago•3 comments

AtomVM – Elixir, Erlang, and Gleam on Microcontrollers [video]

https://fosdem.org/2026/schedule/event/YP97YR-atomvm_elixir_erlang_and_gleam_on_microcontrollers/
1•TheWiggles•1h ago•0 comments

Show HN: Adobe-fonts-skill, search fonts, update kits, and ship UI code faster

https://github.com/alexh/adobe-fonts-skill
1•alexhaynes•1h ago•0 comments

U.S. Deports Nine Migrants in Secret, Ignoring Legal Protections

https://www.nytimes.com/2026/02/14/world/africa/us-secret-deportation-cameroon.html
13•jbegley•1h ago•1 comments

Blockchain in a Box (Docker: Educational Crypto Nodes with Lesson Plans)

https://github.com/androidteacher/iCSI_Coin_2026
1•Beckmeister•1h ago•1 comments