frontpage.
newsnewestaskshowjobs

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

Visual Lean: An experimental graphical user interface for writing Lean code

https://leangame.autumnofautumn.com/
1•Luc•1m ago•0 comments

Ask HN: What should I do with 50k verified emails

1•zerodollar•5m ago•0 comments

Big Tech Will Not Broadcast Your Dissent

https://www.motherjones.com/politics/2026/10/meta-x-no-kings-elections-protests-midterms-free-spe...
1•robtherobber•7m ago•0 comments

SaaS Development Outsourcing: 20 Questions to Ask Before You Sign

https://www.technology.org/2026/09/30/saas-development-outsourcing-20-questions-to-ask-before-you...
1•Aninay•8m ago•0 comments

Nordstjernen Web Browser

https://nordstjernen.org/
1•edward•9m ago•0 comments

JEP 543: Structured Concurrency (Java 28)

https://openjdk.org/jeps/543
2•lichtenberger•10m ago•0 comments

Anthropic disclosed an $80.7B net loss for the first half of 2026

https://www.wsj.com/tech/ai/anthropic-revenue-growth-ipo-accaf0f1
1•joennlae•11m ago•0 comments

Is Hacker News still a good predictor of tech trends?

https://installmap.com/research/hacker-news-lead-over-google
1•markusweber97•11m ago•0 comments

AI video effects from one or two photos, without writing prompts

https://aieffectstudio.com/
1•visiohex•12m ago•0 comments

Signs your software project needs rescuing – not another sprint

https://businesscloud.co.uk/opinion/signs-your-software-project-needs-rescuing-not-another-sprint/
1•Aninay•13m ago•0 comments

Did Satoshi Get Bitcoin Wrong? Claude's NSA Discovery Sparks Debate

https://tech.yahoo.com/ai/claude/articles/did-satoshi-bitcoin-wrong-claudes-123000042.html
1•cybermango•14m ago•0 comments

ByteDance, Alibaba, Tencent place over $35B worth of Nvidia chip orders

https://www.reuters.com/business/retail-consumer/bytedance-alibaba-tencent-place-over-35-billion-...
1•giuliomagnifico•15m ago•0 comments

Claude Code Spotted a Cryptominer on Mac While Building a Temperature App

https://www.gadgetreview.com/claude-code-spotted-a-cryptominer-on-mac-while-helping-to-build-a-te...
2•cybermango•16m ago•0 comments

Learning by building a multi-agent design lab. Yet, single agent works better

https://github.com/bencodev/dsgnrd
2•benoit_cotte•19m ago•0 comments

Finland Buying a Million Landmines

https://yle.fi/a/74-20252139
1•vrganj•19m ago•0 comments

Programming by hand is fun but it's better to not have to do it any more

https://twitter.com/GruPiotr/status/2112825278397341710
2•piotrgrudzien•22m ago•0 comments

European personal agent for knowledge workers

https://usebris.com/
2•emilsmeznieks•23m ago•0 comments

Guy made a site to spot SLOP games on NEXT FEST – it is vibe coded

https://www.reddit.com/r/IndieDev/comments/1xbgnwh/im_building_a_site_that_lets_you_filter_next_f...
2•ibackstrom•24m ago•0 comments

PolicyWatcher – Independent monitor of privacy, ToS and AI policy changes

https://policywatcher.online
1•a9i•26m ago•0 comments

Parallelizing MySQL Snapshots

https://materialize.com/blog/parallelizing-mysql-snapshots/
1•def-•27m ago•0 comments

We Replaced Fyxer Overnight

https://madewithlove.com/blog/how-we-replaced-fyxer-overnight/
1•andreascreten•34m ago•2 comments

Predicting cancer survival using face photographs

https://www.thelancet.com/journals/landig/article/PIIS2589-7500(26)00079-8/fulltext
1•fabianlindfors•35m ago•0 comments

File Attack Deep Dives: Office Documents as an Attack Surface

https://mohitkhare.com/blog/file-attack-document-macros/
3•mkfeuhrer•37m ago•0 comments

Spread: Launch faster. Break nothing. Know why

https://www.spread.ai
1•doener•37m ago•0 comments

Battle Drones–a vibe coded RTS with audio-based multiplayer

https://simonwillison.net/2026/Oct/20/battledrones/
1•red369•39m ago•0 comments

Zoomies.sh

https://zoomies.sh/
2•jnnngs•42m ago•0 comments

Ahead-of-Time Compilation of JavaScript to WebAssembly via Static Type Inference [video]

https://vimeo.com/1234257957
1•Klaster_1•45m ago•0 comments

A Bicycle Journey Across Brazil to Find a Vanishing Savanna

https://e360.yale.edu/features/2026-film-contest-second-place-cerrado
2•throwaway2037•45m ago•0 comments

Ask HN: What's a good RSS feed reader?

2•karimmaassen•50m ago•0 comments

Manufacturing Nostalgia: Paula Sweeney on Longing for How Life Once Felt

https://philosophybreak.com/articles/manufacturing-nostalgia-paula-sweeney-on-longing-for-how-lif...
1•robtherobber•51m ago•0 comments