pgsql: Refactor ParamListInfo initialization

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor ParamListInfo initialization
Date: 2019-03-14 12:37:04
Message-ID: E1h4Pbc-0008Hx-40@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor ParamListInfo initialization

There were six copies of identical nontrivial code. Put it into a
function.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c6ff0b892c30122b75d32c524109d16ee3c973f0

Modified Files
--------------
src/backend/commands/prepare.c | 12 +-------
src/backend/executor/functions.c | 15 ++--------
src/backend/executor/spi.c | 17 ++----------
src/backend/nodes/params.c | 59 +++++++++++++++++++++-------------------
src/backend/tcop/postgres.c | 11 +-------
src/include/nodes/params.h | 1 +
src/pl/plpgsql/src/pl_exec.c | 3 +-
7 files changed, 40 insertions(+), 78 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2019-03-14 12:39:10 Re: pgsql: Fix thinko when bumping on temporary directories in pg_verify_ch
Previous Message Dean Rasheed 2019-03-14 08:28:16 Re: pgsql: Add support for hyperbolic functions, as well as log10().