logo       

Re: [HACKERS] RFD: Don't force plpgsql IN parameters to constant: msg#01946

pgsql-hackers

Subject: Re: [HACKERS] RFD: Don't force plpgsql IN parameters to constant

Andrew Dunstan <andrew@xxxxxxxxxxxx> writes:
> First reaction is that it would mean we could never pass them by
> reference. I know PLPerl uses in effect pass by copy, but what does
> PLPgsql do?

It's not really an issue, because plpgsql keeps track of whether
the current value of the variable "belongs" to it or not. Look
at the "freeval" manipulations in pl_exec.c.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise