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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ensure generic plan gets used for a plpgsql expression with no p
Date: 2011-09-16 16:31:50
Message-ID: E1R4bKQ-00024F-Ps@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-09-16 18:47:44 pgsql: Avoid unnecessary page-level SSI lock check in heap_insert().
Previous Message User Itagaki 2011-09-16 12:20:35 textsearch-ja - textsearch-ja: Support EXTENSION for PostgreSQL 9.1.