Re: RFD: Don't force plpgsql IN parameters to constant

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RFD: Don't force plpgsql IN parameters to constant
Дата
Msg-id 3685.1248922629@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: RFD: Don't force plpgsql IN parameters to constant  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Steve Prentice
Дата:
Сообщение: Re: RFD: Don't force plpgsql IN parameters to constant
Следующее
От: Robert Haas
Дата:
Сообщение: machine-readable explain output v4