pgsql: Speed up array element assignment in plpgsql by caching type inf

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Speed up array element assignment in plpgsql by caching type inf
Date: 2011-09-26 19:38:23
Message-ID: E1R8H0R-0003D9-H9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Speed up array element assignment in plpgsql by caching type information.

Cache assorted data in the PLpgSQL_arrayelem struct to avoid repetitive
catalog lookups over multiple executions of the same statement.

Pavel Stehule

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/16762b519c9421ad5f1e373b1d89b0f2f6568769

Modified Files
--------------
src/pl/plpgsql/src/gram.y | 2 +
src/pl/plpgsql/src/pl_exec.c | 102 ++++++++++++++++++++------------
src/pl/plpgsql/src/plpgsql.h | 10 +++
src/test/regress/expected/plpgsql.out | 62 ++++++++++++++++++++
src/test/regress/sql/plpgsql.sql | 41 +++++++++++++
5 files changed, 179 insertions(+), 38 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-09-27 02:25:59 pgsql: Allow snapshot references to still work during transaction abort
Previous Message Robert Haas 2011-09-26 17:14:18 pgsql: Update obsolete comments.