Thread: pgsql: Allow plpgsql IN parameters to be assigned to.

pgsql: Allow plpgsql IN parameters to be assigned to.

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Allow plpgsql IN parameters to be assigned to.  Since the parameters are just
preinitialized local variables, this does not affect the function's semantics
as seen by callers; allowing assignment simply avoids the need to create more
local variables in some cases.  In any case we were being rather inconsistent
since only scalar parameters were getting marked constant.

No documentation change, since parameters were never documented as being
marked constant anyway.

Steve Prentice

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_comp.c (r1.137 -> r1.138)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_comp.c?r1=1.137&r2=1.138)