Re: RFD: Don't force plpgsql IN parameters to constant - Mailing list pgsql-hackers

From Tom Lane
Subject Re: RFD: Don't force plpgsql IN parameters to constant
Date
Msg-id 3685.1248922629@sss.pgh.pa.us
Whole thread Raw
In response to Re: RFD: Don't force plpgsql IN parameters to constant  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Hmm, well if I understand this correctly (now), it's similar to allowing:

> void
> test2(int a)
> {
> a = 2;
> return;
> }

> ...which is a fairly common programming practice that I don't think is
> particularly considered bad style, or at least certainly not by
> everyone.

Right, you could only change the local copy of the parameter value.
It's certainly not demonstrably horrible ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Steve Prentice
Date:
Subject: Re: RFD: Don't force plpgsql IN parameters to constant
Next
From: Robert Haas
Date:
Subject: machine-readable explain output v4