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

pgsql: Fix inline_set_returning_function() to preserve the invalItemsl

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix inline_set_returning_function() to preserve the invalItemsl
Date: 2010-10-25 17:05:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Fix inline_set_returning_function() to preserve the invalItems list properly.

This avoids a possible crash when inlining a SRF whose argument list
contains a reference to an inline-able user function.  The crash is quite
reproducible with CLOBBER_FREED_MEMORY enabled, but would be less certain
in a production build.  Problem introduced in 9.0 by the named-arguments
patch, which requires invoking eval_const_expressions() before we can try
to inline a SRF.  Per report from Brendan Jurd.



Modified Files
src/backend/optimizer/util/clauses.c |   23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-10-25 18:25:52
Subject: pgsql: Fix overly-enthusiastic Assert in printing of Param referenceex
Previous:From: Alvaro HerreraDate: 2010-10-25 13:05:46
Subject: pgsql: find -path is not portable, so use grep -v instead.

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