Gavin Casey <gpjcasey@xxxxxxxxxxxxxx> writes: > It was actually the reassignment of an IN parameter that I was questioning, That was changed in 9.0, per the release notes: * Allow input parameters to be assigned values within PL/pgSQL functions (Steve Prentice) Formerly, input parameters were treated as being declared CONST, so the function's code could not change their values. This restriction has been removed to simplify porting of functions from other DBMSes that do not impose the equivalent restriction. An input parameter now acts like a local variable initialized to the passed-in value. As for := versus =, plpgsql has always accepted both. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general