pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: yamt@mwd.biglobe.ne.jp
Cc: pgsql-bugs@postgresql.org
Subject: Re: bug in plancache.c
Date: Mon, 26 Sep 2011 12:45:58 -0400
Message-ID: <9261.1317055558@sss.pgh.pa.us> (raw)
In-Reply-To: <20110926101548.8FA8A14A143@mail.netbsd.org>
References: <20110926101548.8FA8A14A143@mail.netbsd.org>

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



view thread (2+ messages)

Message-ID: <9261.1317055558@sss.pgh.pa.us>
Permalink:  ../9261.1317055558@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9261.1317055558@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, yamt@mwd.biglobe.ne.jp
  Subject: Re: bug in plancache.c
  In-Reply-To: <9261.1317055558@sss.pgh.pa.us>
  References: <20110926101548.8FA8A14A143@mail.netbsd.org> <9261.1317055558@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox