In this phase II randomized, placebo controlled study, patients with locally advanced or metastatic pancreatic cancer will be randomized to treatment with gemcitabine, erlotinib and metformin, or gemcitabine, erlotinib and placebo.