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

Where is all the new, good software?

https://www.natemeyvis.com/where-is-all-the-new-good-software/
1•ingve•2m ago•0 comments

Crypto thieves sell hardware wallets with secret eSIM

https://www.heise.de/en/news/Crypto-thieves-sell-hardware-wallets-with-secret-eSIM-11485188.html
1•qwertox•2m ago•0 comments

Show HN: Gvmux – A native macOS terminal with vertical tabs, built on libghostty

https://gvmux-384478.gitlab.io/
1•chinmayag32•3m ago•0 comments

Light Touch is a full-fat iPhone and iPod touch emulator for the Mac

https://samhenri.gold/lighttouch/
1•OuterVale•3m ago•0 comments

Show HN: Vector and raster animation studio for Android

https://play.google.com/store/apps/details?id=com.hnp.animoid&hl=en_US
1•pavan4•5m ago•0 comments

Top English-language news sites in the world:Half see declines of 20% or more

https://pressgazette.co.uk/media-audience-and-business-data/media_metrics/most-popular-websites-n...
1•Markoff•10m ago•1 comments

Primary Knowledge Without Generative Context

https://medium.com/@smoking2man/primary-knowledge-without-generative-context-epistemological-and-...
1•Aldus551•11m ago•0 comments

The People's Bookshelf (Riga, Latvia)

https://tautasgramatuplaukts.lv/en/
1•wmchen•11m ago•0 comments

Document Review with Unsiloed and TypeSafe Jev

https://www.unsiloed.ai/blog/document-review-unsiloed-typesafe-jev
1•ritzaco•12m ago•0 comments

DishwasherBench – Can Frontier Models Stack a Dishwasher?

https://github.com/composo-ai/DishwasherBench
1•mlukewizard•12m ago•1 comments

Show HN: A Playable Architectural Facade Synth

https://claude.ai/artifact/BF6MjSg1RJBsp1ZZiQX6D2
2•Tomasmillar•17m ago•2 comments

A New Anti-Aging Drug Looks to Turn Back the Clock on Skin Age

https://www.wired.com/story/new-anti-aging-drug-trial-for-skin/
1•simonebrunozzi•17m ago•0 comments

Show HN: Seekter – an open-source job-search agent that runs in Claude Code

https://github.com/selfishprimate/seekter
1•selfishprimate•17m ago•0 comments

We Infiltrated a Police Union Convention in Las Vegas

https://www.hamiltonnolan.com/p/we-infiltrated-a-police-union-convention
2•robtherobber•20m ago•0 comments

Pigeon-powered internet packet goes under the hammer at Christie's

https://www.theregister.com/offbeat/2026/10/12/pigeon-powered-internet-packet-goes-under-the-hamm...
3•nephihaha•22m ago•0 comments

Show HN: A skill to make Claude Code use Reference Points

https://github.com/SamHasler/skills/blob/main/plugins/reference-points/skills/reference-points/RE...
2•Flenser•23m ago•0 comments

Testing whether ChatGPT can tell which way a product photo is rotated (paper)

https://zenodo.org/records/22975680
1•tomerbarm•24m ago•0 comments

A negative handover: no strategy camera on this bank [pdf]

https://zenodo.org/records/23328706
1•kummap•29m ago•0 comments

Show HN: FM-1 synth emulator with a reverse-engineered CPU and WebAssembly JIT

https://joakimeriksson.github.io/fm1-emu/
2•joakimeriksson•33m ago•0 comments

Creusot 0.14.0 – Contracts for Rust, formally proved

https://devlog.creusot.rs/v0-14-0/
2•syrak•38m ago•0 comments

Reform UK figures see social media engagement drop after strikes on Russia DCs

https://www.thelondoneconomic.com/politics/reform-figures-see-social-media-engagement-drop-after-...
6•choult•39m ago•1 comments

AICR v1.0: Open, stable and verifiable GPU cluster configuration

https://developer.nvidia.com/blog/aicr-v1-0-open-stable-and-verifiable-gpu-cluster-configuration/
2•teleforce•39m ago•0 comments

Show HN: Lightweight, self-hosted, web analytics app

https://github.com/lmxrd/potoo
2•composer42•39m ago•0 comments

AI-native Android OS running agents to operate your phone

https://github.com/AgentVis-OS/aiphone_assistant
1•inoki•40m ago•0 comments

Chinese data vendors emerging and trying to go global – focus on healthcare data

https://aiproem.substack.com/p/does-china-not-have-data-vendors
4•pretext•40m ago•0 comments

Flydubai FZ1073 saga: Iran theorizes it was an Israeli false-flag operation

https://www.presstv.co.uk/Detail/2026/10/03/777527/flydubai-fz1073-contradictions-missing-evidenc...
2•thisislife2•40m ago•0 comments

Linus Torvalds "Did What I Preach" Used AI to Make Code Decipherabl, Find Bugs

https://www.phoronix.com/news/Linus-Torvalds-Assoc-Array
6•raybb•41m ago•0 comments

Gitot – Godot Git Tool

https://godotengine.org/asset-library/asset/5522
2•theanonymousone•42m ago•0 comments

Ts-browser-ext: Tailscale in a browser profile, no system install

https://github.com/tailscale/ts-browser-ext
3•DarkWolf48•43m ago•0 comments

Apple routed a graphite pipe through the iPhone Duo's hinge to dissipate heat

https://www.pcmag.com/news/apple-routed-a-graphite-pipe-through-the-iphone-duos-hinge
1•giuliomagnifico•44m ago•0 comments