{"head":"21fb95da46bce8de3e149707c680d489b8a5ffb0","size":1,"push_id":44014504,"shas":[["21fb95da46bce8de3e149707c680d489b8a5ffb0","ffeaa947aef224da9ba99b6a18bdd74288df0e3e@sss.pgh.pa.us","Use a fresh copy of query_list when making a second plan in GetCachedPlan.\n\nThe code path that tried a generic plan, didn't like it, and then made a\ncustom plan was mistakenly passing the same copy of the query_list to the\nplanner both times.  This doesn't work too well for nontrivial queries,\nsince the planner tends to scribble on its input.  Diagnosis and fix by\nYamamoto Takashi.","Tom Lane"]],"ref":"refs/heads/master"}