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

A Constructive Look at TempleOS

http://www.codersnotes.com/notes/a-constructive-look-at-templeos/
1•TigerUniversity•1m ago•0 comments

Accenture combats AI refuseniks by linking promotions to log-ins

https://www.ft.com/content/ac672f97-a603-4c56-afa3-4a5273d45674
1•cianmm•9m ago•0 comments

Show HN: I Emulated My Childhood

https://sklivvz.com/posts/i-finally-emulated-my-childhood
1•sklivvz1971•13m ago•0 comments

Show HN: 17MB pronunciation scorer beats human experts at phoneme level

2•fabiosuizu•13m ago•0 comments

The Great Locomotive Chase

https://en.wikipedia.org/wiki/Great_Locomotive_Chase
2•keiferski•14m ago•0 comments

State of Generative Media

https://fal.ai/gen-media-report-volume-1
1•mdrzn•14m ago•0 comments

Brave Iranians gather in central Iran to honour those killed in uprising

https://twitter.com/IranIntl_En/status/2024767317893075330
1•ukblewis•14m ago•0 comments

Trump to order declassification of UFO/UAP related files

https://twitter.com/TrumpDailyPosts/status/2024661955479556382
1•lucasRW•15m ago•0 comments

Show HN: SaveTheTrade – a simple trade journal and performance tracker

https://survivethetrade.com/
1•daniellax•16m ago•0 comments

Wikipedia has deprecated and will blacklist archive.today

https://en.wikipedia.org/wiki/Wikipedia:Archive.today_guidance
2•gyrovague-com•20m ago•0 comments

TamboUI: A Modern Terminal UI Framework for Java (GraalVM Native)

https://github.com/tamboui/tamboui
1•mikepapadim•21m ago•0 comments

Optimism Plunges 28% as Base Drifts from OP Stack: What's Next?

https://timescrypto.com/cryptonews/altcoins/optimism-plunges-28-as-base-drifts-from-op-stack-what...
1•Alan_Writer•21m ago•0 comments

Show HN: Aismond – attack-surface monitoring for MSP client fleets

https://www.aismond.com/
1•mirceamitu•22m ago•0 comments

I discovered a hidden tragedy tied to Russia's most famous painting

https://www.theguardian.com/artanddesign/2026/feb/20/an-unknown-woman-how-i-discovered-a-hidden-t...
2•n1b0m•25m ago•0 comments

I have included AI in Corpus Lifetime free. net worth in one place

https://icorpus.vercel.app
1•mathan_karthik•28m ago•1 comments

Retrofitting Bridges with "Smart" Steel

https://www.empa.ch/web/s604/bruecken-mit-intelligentem-stahl-sanieren
1•JeanKage•29m ago•0 comments

CHERIoT Rust status update #0

https://rust.cheriot.org/2026/02/15/status-update.html
1•fanf2•29m ago•0 comments

Pens, pen clips, design engineer, obsession. Surprisingly interesting [video]

https://www.youtube.com/shorts/3i9FGaakX-Y
2•lifeisstillgood•30m ago•0 comments

Trump directs US govt to release files on 'alien and extraterrestrial life'

https://news.sky.com/story/trump-directs-us-government-to-release-files-on-alien-and-extraterrest...
2•iamben•32m ago•1 comments

Show HN: Delulu9 - SEO keyword research for Claude Code content pipeline

https://delulu9.com/
1•last_layer•42m ago•0 comments

Show HN: Chowser – A lightweight macOS browser chooser

https://github.com/bsreeram08/chowser
1•bsreeram08•46m ago•0 comments

I Donut Belive

https://idonutbelieve.com/
1•lifty•51m ago•1 comments

Show HN: FakeSec – AI photo detector with 12 independent analysis methods

https://fakesec.com/
1•theevoq•57m ago•1 comments

Ask HN: How many people are facing the problem of gst invoice mismatch?

1•SRMohitkr•57m ago•0 comments

Using an Agent Engine AI Agent from Dotnet C#

https://furotmark.github.io/2026/02/05/Using-An-Agent-Engine-AI-Agent-From-Dotnet.html
1•furoTmark•58m ago•0 comments

Vibenchmarking different JSON schema validator CLI tools

https://github.com/whacked/cow/blob/main/vibe%20benchmarking%20json%20schema%20validators.md
1•whacked_new•1h ago•0 comments

Regulated Crypto Investigation Team – Intelligence Cyber Wizard Services

1•Robertjoe•1h ago•0 comments

I tried building my startup entirely on European infrastructure

https://www.coinerella.com/made-in-eu-it-was-harder-than-i-thought/
166•willy__•1h ago•87 comments

How HTTP Requests Work

https://xeiaso.net/blog/how-http-requests-work-2020-05-19/
2•chromehearts•1h ago•0 comments

Tech Is Taking over Olympic Curling

https://spectrum.ieee.org/olympics-curling-robot-ai
1•JeanKage•1h ago•0 comments