Allow plpgsql IN parameters to be assigned to. Since the parameters are just
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Sep 2009 01:53:32 +0000 (01:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Sep 2009 01:53:32 +0000 (01:53 +0000)
commit0f427dfe5ae26f4b792f4f0b8d235dd60a1d144f
tree42d2e74d77701f39baf1747461fa4fa7b0195861
parent94f238cf1a51308c2377ddcd63ecc447ecb94a68
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
src/pl/plpgsql/src/pl_comp.c