Skip site navigation (1) Skip section navigation (2)

Re: bug in plancache.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: yamt(at)mwd(dot)biglobe(dot)ne(dot)jp (YAMAMOTO Takashi)
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: bug in plancache.c
Date: 2011-09-26 16:45:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
yamt(at)mwd(dot)biglobe(dot)ne(dot)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

In response to

pgsql-bugs by date

Next:From: Robert HaasDate: 2011-09-26 17:14:40
Subject: Re: comment fixes
Previous:From: Tom LaneDate: 2011-09-26 16:39:26
Subject: Re: BUG #6222: Segmentation fault on unlogged table

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group