A global planning problem is analyzed for extracting an exhaustible resource like oil when resource extraction - the only source for current consumption - also generates additions to the stock of GHGs that influence the likelihood of hitting a threshold representing climate change. We derive...