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

Microbenchmarking Chipsets for Giggles

https://chipsandcheese.com/p/microbenchmarking-chipsets-for-giggles
1•zdw•7m ago•0 comments

AI Is Garbage and a Bubble

https://www.richardcarrier.info/archives/38652
3•mastabadtomm•8m ago•0 comments

Show HN: Inner Warden, self-defending server with eBPF and AI

https://www.innerwarden.com/
2•maiconburn•10m ago•0 comments

Describe an app in one sentence, get it built and shipped within minutes

https://bubbling.dev/
1•georgesmith9914•11m ago•2 comments

GrapheneOS will remain usable by anyone without requiring personal information

https://grapheneos.social/@GrapheneOS/116261301913660830
1•nothrowaways•12m ago•0 comments

Show HN: SYNX – a new config format with active mod. Built for AI and humans

https://synx.aperturesyndicate.com/
2•Kaiserrberg•12m ago•0 comments

Show HN: Discover Indie Version of Popular SaaS Products

https://indiehustles.com/
2•devarifhossain•13m ago•1 comments

Mutual Party Extremism

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6425039
2•neehao•14m ago•0 comments

The Slow Collapse of MkDocs

https://fpgmaas.com/blog/collapse-of-mkdocs/
1•zdw•15m ago•0 comments

Show HN: I built a paper-based vault with m-of-n keys

https://papervault.xyz
2•boazeb•16m ago•0 comments

Solod: Go can be a better C

https://antonz.org/solod/
3•ibobev•17m ago•0 comments

Show HN: EnvMaster – inject encrypted env variables from your terminal

https://www.envmaster.dev/
2•selixe_•18m ago•0 comments

Onefiling

https://bumbershootsoft.wordpress.com/2026/03/21/onefiling/
1•ibobev•19m ago•0 comments

Learning Rust

https://alexene.dev/2018/09/09/Learning-rust.html
1•ibobev•20m ago•0 comments

MFOS: Enforcing a commit boundary for AI-assisted decisions

https://github.com/justabriar/mfos-commit-boundary/blob/main/README.md
1•tcook462•21m ago•0 comments

Scientists discover AI can make humans more creative

https://www.sciencedaily.com/releases/2026/03/260315004355.htm
1•logicprog•23m ago•0 comments

The vocoder, the military tech that changed music

https://www.theverge.com/podcast/898697/vocoder-music-instrument-version-history
1•ianrahman•24m ago•0 comments

Learning Creative Learning

https://lcl.media.mit.edu/
2•ngmc•32m ago•1 comments

Vertical Farms Tried to Compete with Open Field Farming. It Isn't Going Well

https://www.nytimes.com/2026/03/21/business/vertical-farms-tried-to-compete-with-open-field-farmi...
3•Kaibeezy•33m ago•1 comments

Science Has a Major Fraud Problem

https://www.thefp.com/p/science-has-a-major-fraud-problem
1•nextos•35m ago•0 comments

We Solved the Recording Problem. The Playback Problem Is Still Broken

https://medium.com/@jo.sagar/we-solved-the-recording-problem-the-playback-problem-is-still-broken...
1•sagardjoshi•36m ago•0 comments

A giant cloud of alcohol has been discovered in the universe (2022)

https://universemagazine.com/en/astronomers-felt-the-taste-and-smell-of-a-giant-cloud-of-alcohol/
1•thunderbong•37m ago•0 comments

Crawl4AI

https://docs.crawl4ai.com/
1•bjornroberg•40m ago•1 comments

Terence Tao – Kepler, Newton, and the true nature of mathematical discovery

https://www.dwarkesh.com/p/terence-tao
4•paulpauper•40m ago•0 comments

Ask HN: Is it feasible to build an ESP32 emulator in JavaScript?

https://github.com/mluis/qemu-esp32
3•dmonterocrespo•40m ago•4 comments

File exclusion reliability of AI coding tools

https://github.com/yjcho9317/aiignore-cli/blob/main/docs/test-report.md
1•amai•41m ago•0 comments

Economist David Woo: Why Markets Misread the Iran War [video]

https://www.youtube.com/watch?v=z7QAc99EDR0
2•thomassmith65•41m ago•0 comments

Disintegration Fingerprinting: A Low-Cost Tool to Identify Falsified Medicines

https://www.medrxiv.org/content/10.1101/2025.08.15.25333621v2
2•Luc•41m ago•0 comments

Reading Socrates in Silicon Valley

https://www.ft.com/content/f9e57ed6-ad07-491c-830a-88ba92d77add
1•thomasjudge•41m ago•1 comments

Show HN: A C/C++ IDE written in C from scratch with zero dependencies

https://giovannicarlino04.itch.io/icarus
2•giovannicar04•41m ago•0 comments