Search Postgresql Archives

Re: Need help with INOUT mis-understanding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tony Caduto <tony_caduto@xxxxxxxxxxxxxxxxxxxx> writes:
> I have noticed this as well, if I declare OUT params I can modify them 
> to my hearts content before they go out,
> however if you declare it as a INOUT you can't modify it because it is 
> declared as a constant.

Uh, I don't think so.

                    /* input argument vars are forced to be CONSTANT */
                    if (argmode == PROARGMODE_IN)
                        ((PLpgSQL_var *) argvariable)->isconst = true;

Can you provide a test case that misbehaves that way?

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux