Re: Free indexed_tlist memory explicitly within set_plan_refs()

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Free indexed_tlist memory explicitly within set_plan_refs()
Date: 2015-05-30 22:12:17
Message-ID: CAM3SWZS0mpN7CVnOWZhN6OiYNFKtGjU3iMxjDqT+=aQD3GJazQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, May 30, 2015 at 1:07 AM, Peter Geoghegan <pg(at)heroku(dot)com> wrote:
> My fix for this issue
> (0001-Fix-bug-with-whole-row-Vars-in-excluded-targetlist.patch) still
> missed something. There needs to be additional handling in
> ruleutils.c:

Debugging this allowed me to come up with a significantly simplified
approach. Attached is a new version of the original fix. Details are
in commit message -- there is no actual need to have
search_indexed_tlist_for_var() care about Vars being resjunk in a
special way, which is a good thing. There is also no need for further
ruleutils.c specialization, as I implied before.

Some deparsing tests are now included on top of what was already in
the first version.
--
Peter Geoghegan

Attachment Content-Type Size
0001-Fix-bug-with-whole-row-Vars-in-excluded-targetlist.patch text/x-patch 20.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2015-05-30 22:30:37 Re: Free indexed_tlist memory explicitly within set_plan_refs()
Previous Message Tomas Vondra 2015-05-30 21:46:58 Re: nested loop semijoin estimates