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

EVE Online dev establishes "research partnership" with Google DeepMind

https://www.eurogamer.net/eve-online-dev-breaks-from-pearl-abyss-and-establishes-research-partner...
1•czottmann•2m ago•0 comments

Tell HN: ChatGPT and Claude web front ends can run bash command remotely

1•mabynogy•2m ago•0 comments

Show HN: AirScore – Daily air-quality emails synthesizing EPA, NOAA, and pollen

https://getairscore.com
1•JHARDIMAN•4m ago•0 comments

Peter Fortin Programming for Philosophers (2023)

https://github.com/KripkesBeard/programming-for-philosophers
1•3willows•4m ago•0 comments

On Superpower Suicide

https://snyder.substack.com/p/on-superpower-suicide
1•gpi•5m ago•0 comments

Microsoft is upgrading Windows 11 touchpad with four new gestures

https://www.windowslatest.com/2026/05/09/microsoft-is-upgrading-windows-11-trackpad-with-automati...
2•thunderbong•7m ago•0 comments

Apple Private Relay and network parental control

https://tech.chrishardie.com/2026/apple-private-relay-network-parental-control/
2•ChrisHardie•12m ago•0 comments

Who sets the Doomsday Clock – and what can they tell us about our future?

https://www.theguardian.com/science/2026/may/09/doomsday-clock-ai-iran-ukraine-war-climate-breakd...
2•mitchbob•12m ago•0 comments

Data-Oriented Demo: SOA, composition (2015) [video]

https://www.youtube.com/watch?v=ZHqFrNyLlpA
1•tosh•14m ago•0 comments

Reactions to "We Have Learned Nothing"

https://reactionwheel.net/2026/05/reactions-to-we-have-learned-nothing.html
2•jeffreyrogers•15m ago•0 comments

CPanel's Black Week: 3 New Vulnerabilities Patched After Attack on 44k Servers

https://www.copahost.com/blog/cpanels-black-week-three-new-vulnerabilities-patched-after-ransomwa...
1•ggallas•15m ago•0 comments

On Cloudflare

https://indiscretemusings.substack.com/p/on-cloudflare
1•gpi•17m ago•0 comments

Ask HN: How do you give estimates in the age of Agentic coding

2•nibbleyou•17m ago•0 comments

What you need to know about the cruise ship hantavirus outbreak

https://www.technologyreview.com/2026/05/08/1136988/heres-what-you-need-to-know-about-the-cruise-...
1•joozio•18m ago•0 comments

Gartner: AI layoffs don't create returns, they just create vacancies

https://www.theregister.com/ai-and-ml/2026/05/06/ai-layoffs-backfire-as-cutting-staff-doesnt-cut-...
2•feverzsj•18m ago•0 comments

Preparing for a 'Vulnerability Patch Wave'

https://www.ncsc.gov.uk/blogs/prepare-for-vulnerability-patch-wave
2•mooreds•18m ago•0 comments

From phones to humanoid robots: China's supply chain eyes next growth curve

https://www.scmp.com/tech/tech-trends/article/3352212/phones-robots-chinas-supply-chain-eyes-next...
1•mooreds•19m ago•0 comments

Taiwan's Plastic Habit Collides with Shortages Caused by a Faraway War

https://www.nytimes.com/2026/05/09/business/taiwan-plastic-bag-shortage.html
1•mooreds•19m ago•0 comments

Ask HN: What would you include if you could make your own phone?

1•vednig•19m ago•1 comments

The Sights of the Venice Biennale

https://www.nytimes.com/2026/05/05/arts/venice-biennale-photos-video.html
1•danecjensen•20m ago•0 comments

I'm 16 and I built FutuRole to fight the "humiliation ritual" of job hunting

https://futurole.com
2•whatdoyoumean02•22m ago•1 comments

Will We Ever Be Able to Forecast Volcanic Eruptions Like Weather?

https://www.quantamagazine.org/will-we-ever-be-able-to-forecast-volcanic-eruptions-like-weather-2...
1•Brajeshwar•28m ago•0 comments

A major watchdog claims that data centers are wreaking havoc on the power grid

https://www.businessinsider.com/nerc-issues-alert-on-data-centers-threatening-grid-stability-2026-5
1•01-_-•28m ago•0 comments

Nailing jelly to a wall: is it possible? (2005)

https://greem.co.uk/otherbits/jelly.html
1•microsoftedging•31m ago•0 comments

Has anyone else hit expert homogeneity collapse in small MoE models?

https://github.com/eriirfos-eng/ternary-intelligence-stack
1•rfi-irfos•31m ago•0 comments

A soccer simulator played by AI Agents

https://gangtao.github.io/AgentPitch/
2•gangtao•31m ago•0 comments

Disappearing Polymorph

https://en.wikipedia.org/wiki/Disappearing_polymorph
2•canjobear•37m ago•0 comments

Regression Towards the Mean

https://en.wikipedia.org/wiki/Regression_toward_the_mean
1•soupspaces•40m ago•0 comments

Pushing Local Models in Coding Agents with Focus and Polish

https://lucumr.pocoo.org/2026/5/8/local-models/
1•goranmoomin•40m ago•0 comments

Open-source experiment: collaborative AI cognition through wiki pages

https://mentisphere.wiki/wiki/Main_Page
2•franzvill•42m ago•0 comments