Обсуждение: pgsql: Ensure generic plan gets used for a plpgsql expression with no p

Поиск
Список
Период
Сортировка

pgsql: Ensure generic plan gets used for a plpgsql expression with no p

От
Tom Lane
Дата:
Ensure generic plan gets used for a plpgsql expression with no parameters.

Now that a NULL ParamListInfo pointer causes significantly different
behavior in plancache.c, be sure to pass it that way when the expression
is known not to reference any plpgsql variables.  Saves a few setup
cycles anyway.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e6ed34f70d57d102da8383919e0046c577d317e7

Modified Files
--------------
src/pl/plpgsql/src/pl_exec.c |   27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)