pgsql: Fix inline_set_returning_function() to preserve the invalItems l

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix inline_set_returning_function() to preserve the invalItems l
Дата
Msg-id E1PAQTv-0006dS-DM@gemulon.postgresql.org
обсуждение исходный текст
Список 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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=ef55e294e66725c412d55b9689328235141d816d

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: find -path is not portable, so use grep -v instead.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix overly-enthusiastic Assert in printing of Param reference ex