Re: bug in plancache.c - Mailing list pgsql-bugs

From Tom Lane
Subject Re: bug in plancache.c
Date
Msg-id 9261.1317055558@sss.pgh.pa.us
Whole thread Raw
In response to bug in plancache.c  (yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi))
List pgsql-bugs
yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) writes:
> GetCachedPlan can pass the 'qlist' to the planner twice.
> if i understand the code correctly, it's unsafe because the planner is
> destructive wrt the input tree.  for my application, it often causes
> a crash in executor.

Good catch, thanks!  (But a fix like this really requires a comment IMO.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6222: Segmentation fault on unlogged table
Next
From: Robert Haas
Date:
Subject: Re: comment fixes