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

How The Times Is Digging Into Millions of Pages of Epstein Files

https://www.nytimes.com/2026/02/12/insider/jeffrey-epstein-files-documents.html
1•jbegley•3m ago•0 comments

OpenClaw bot writes blog post shaming maintainer after rejected PR

https://twitter.com/callebtc/status/2022046669710491991
2•nsedlet•12m ago•0 comments

Defining causal mechanism in dual process theory and 2 types of feedback control

https://arxiv.org/abs/2602.11478
1•s6i•13m ago•0 comments

Show HN: Software Design – ADRs, arch tests, patterns

https://github.com/QDenka/awesome-software-design
2•qdenka•13m ago•0 comments

IterX: AI can optimize code reated to infrastructure, CUDA, DBs, and AI/ML Ops

https://iterx.deep-reinforce.com
1•kathyxiao•15m ago•1 comments

Top Goldman Sachs Lawyer Kathy Ruemmler to Resign over Epstein Links

https://www.ft.com/content/c9c4ea8a-f806-4a04-b409-a8ec03c00b15
2•petethomas•15m ago•0 comments

Colorado AI Builders

https://www.boulderaibuilders.org/
1•mooreds•18m ago•0 comments

WhatsApp Basically Wiped from Russian Internet

https://gizmodo.com/whatsapp-basically-wiped-from-russian-internet-2000720488
1•mooreds•18m ago•0 comments

AI-native software factory with the Phoenix Architecture

https://gist.github.com/mikegehard/1385345f81c26458f311356fd9bfeefa
1•mooreds•20m ago•0 comments

Show HN: Smithers - Declarative AI Orchestration with React

https://github.com/evmts/smithers
2•roninjin10•22m ago•1 comments

The Future of Democracy

https://newrepublic.com/article/206407/future-democracy
1•hkhn•25m ago•0 comments

Yes, It's Fascism, but That Doesn't Mean We're Cooked

https://newrepublic.com/article/206402/trump-fascism-yes-benedetto-croce
3•hkhn•28m ago•0 comments

Glean Work AI Tells Worker to Ignore Fire Alarm

https://mastodon.online/@tagir_valeev/116057271527521893
1•MBCook•28m ago•0 comments

Do you wait for the AI while it works if you are a lawyer?

1•sean_hogle•33m ago•1 comments

The Table

https://github.com/timothyjrainwater-lab/The-Table
1•TimRain•37m ago•0 comments

Show HN: Preview CoreML video models on any video feed

https://cameragraph.app/
1•fasecharmer•39m ago•0 comments

Trump pauses China tech bans ahead of Xi summit

https://www.reuters.com/business/media-telecom/us-china-trade-detente-fuels-mothballing-key-china...
4•spenvo•39m ago•0 comments

Show HN: Wip – Monitor AI agent commits and local Git state from the CLI

https://github.com/drmnaik/wip
2•mahesh588•46m ago•0 comments

Show HN: 8M algorithms in 56 KB – Rust/WASM library for JavaScript

https://github.com/AdamPerlinski/micro-ml
1•adam_perlinski•47m ago•0 comments

Show HN: MicroGPT in 243 Lines – Demystifying the LLM Black Box

2•madugula•47m ago•0 comments

Richard Carrington's first portrait has been found

https://www.cnn.com/2026/02/12/science/solar-storm-richard-carrington-photo
2•YeGoblynQueenne•51m ago•0 comments

One Year of Work for Ten Seconds of Film [video]

https://www.youtube.com/watch?v=iq5JaG53dho
1•susam•53m ago•0 comments

Joseph Gordon-Levitt Gets Section 230 Completely Backwards

https://www.techdirt.com/2026/02/12/joseph-gordon-levitt-goes-to-washington-dc-gets-section-230-c...
4•HotGarbage•54m ago•0 comments

The Automated Soundboard for Streamers

https://killervibe.app
1•Jikouken•55m ago•0 comments

Mechanisms and control of spin interactions in molecular-scale spintronics(2025)

https://www.cell.com/newton/fulltext/S2950-6360(25)00162-8
1•rolph•55m ago•0 comments

Astronomers observe a star that quietly transformed into a black hole

https://www.reuters.com/science/astronomers-observe-star-that-quietly-transformed-into-black-hole...
3•1659447091•1h ago•0 comments

Robust ways to extract bank statements from PDF to CSV beyond raw LLMs?

https://exactstatement.com/
1•alexfefun1•1h ago•1 comments

Ask HN: What makes an AI agent framework production-ready vs. a toy?

1•winclaw-dev•1h ago•0 comments

Everybody Is a CEO Now (and What Am I Doing Here?)

https://www.behind-the-enemy-lines.com/2026/02/everybody-is-ceo-now-and-what-exactly.html
2•ziyao_w•1h ago•0 comments

TiDB Cloud Zero – full-featured database with one line of curl

https://zero.tidbcloud.com/
1•liydu•1h ago•0 comments