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

If you've got Nothing to Hide

https://jacquesmattheij.com/if-you-have-nothing-to-hide/
1•jacquesm•7s ago•0 comments

Ruby on Rails and Claude Code is a *crazy unlock

https://twitter.com/garrytan/status/2018368128108167344
1•ksec•55s ago•0 comments

Anyone else building multiple things at once and not sure if it's smart?

https://onefoundr.click
1•oaba_omar•2m ago•1 comments

Show HN: Qeep – A deep learning framework written in Go with AutoGrad and CUDA

https://github.com/sahandsafizadeh/qeep
1•sahands•5m ago•1 comments

Detecting Helium Leaks with Sound in a Physics-Based Sensor

https://physicsworld.com/a/new-sensor-uses-topological-material-to-detect-helium-leaks/
1•beardyw•8m ago•1 comments

BMW Commits to Subscriptions Even After Heated Seat Debacle

https://www.thedrive.com/news/bmw-commits-to-subscriptions-even-after-heated-seat-debacle
2•terabytest•11m ago•0 comments

President Xi Jinping Speaks with U.S. President Donald J. Trump on the Phone

https://www.fmprc.gov.cn/eng/xw/zyxw/202602/t20260205_11851262.html
2•hunglee2•15m ago•0 comments

Agent Trace

https://agent-trace.dev/
1•tosh•19m ago•0 comments

Getting the Main Thing Right

https://www.seangoedecke.com/getting-the-main-thing-right/
1•ingve•21m ago•0 comments

Show HN: Pahadify – A client-side image editor built with Vanilla JavaScript

https://thepahadify.com/
1•MyselfNikhil•21m ago•0 comments

Show HN: Viraling – Daily showcase where creators get guaranteed exposure

https://www.viraling.co/
1•orifito•22m ago•0 comments

Online Tarot Platforms Shape User Decisions (Without Users Realizing It)

https://medium.com/@enrique_15267/how-online-tarot-platforms-shape-user-decisions-without-users-r...
1•astroideal•24m ago•1 comments

Moltbook: A Post-Mortem Analysis of the Reality We Ignored

1•rowanseerwald•26m ago•2 comments

YouTube AI video/script generator Viralvelocity.app

https://viralvelocity.app/
1•coreycascio•26m ago•1 comments

Show HN: I made CSS Pro 4, a re-imagined Devtools for web design

https://csspro.com/
1•guivr•27m ago•0 comments

I Built a Claude Code Plugin That Detects and Blocks It Before Changes Happen

1•andreahlert•28m ago•0 comments

Wood Gas Vehicles: Firewood in the Fuel Tank (2010)

https://solar.lowtechmagazine.com/2010/01/wood-gas-vehicles-firewood-in-the-fuel-tank/
1•Rygian•28m ago•0 comments

Show HN: Seele AI – Generate playable games from text prompts using MLLM

https://www.seeles.ai/game
1•qingmaoguo•31m ago•0 comments

Digital Twin

https://en.wikipedia.org/wiki/Digital_twin
2•downboots•31m ago•0 comments

QuitGPT – OpenAI Execs Are Trump's Biggest Donors

https://quitgpt.org/
10•robin_reala•33m ago•7 comments

Overhauling a 15-year-old Max patch for Oneohtrix Point Never

https://www.youtube.com/watch?v=eOrdwyW28uc
1•ptrkrlsrd•33m ago•0 comments

Making accounts optional in a local-first app

https://www.maxmntl.com/blog/optional-account-powersync/
1•MaxMonteil•34m ago•0 comments

Craft and AI

https://slightknack.dev/daily/2026-02-04/
1•todsacerdoti•37m ago•0 comments

In Memoriam Robert Tinney

https://tinney.net/in-memoriam
1•dcminter•37m ago•0 comments

1995: 16M People on the Web

https://medium.com/data-is-beautiful/1995-16-million-people-on-the-web-6e4cb7c76117
1•andsoitis•38m ago•0 comments

Civilization VII Coming to Apple Arcade Tomorrow

https://www.macrumors.com/2026/02/04/apple-arcade-civilization-vii/
2•tosh•38m ago•0 comments

Show HN: Micropolis/SimCity Clone in Emacs Lisp

https://github.com/vkazanov/elcity
2•vkazanov•38m ago•1 comments

Building a self-hosted cloud coding agent

https://stanislas.blog/2026/02/netclode-self-hosted-cloud-coding-agent/
2•suavesu•39m ago•1 comments

Input Latency 1977 – 2017

https://danluu.com/input-lag/
2•andsoitis•39m ago•0 comments

What I Don't Like About AI

https://juststrange.substack.com/p/what-i-dont-like-about-ai
1•MrBuddyCasino•42m ago•0 comments