Re: PATCH: make plpgsql IN args mutable (v1) [REVIEW]

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: PATCH: make plpgsql IN args mutable (v1) [REVIEW]
Дата
Msg-id 4AB15924.7040007@agliodbs.com
обсуждение исходный текст
Ответ на Re: PATCH: make plpgsql IN args mutable (v1) [REVIEW]  (Michael Glaesemann <grzm@seespotcode.net>)
Ответы Re: PATCH: make plpgsql IN args mutable (v1) [REVIEW]  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Michael,

> Have an example at hand? I'd argue that in a case of a function of more
> complexity from a code clarity standpoint you'd want to assign to a new
> variable that describes what the new value reflects.

Depends on what programming language you're used to.  For those of us
who do a lot of pass-by-reference in our non-database code, reusing the
IN variable is "natural".  I know not being able to is a longstanding
annoyance for me.

And I really don't think it's the place of the PostgreSQL project to try
to force what some of us think is good PL coding style on people.

-- 
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Feedback on getting rid of VACUUM FULL
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Feedback on getting rid of VACUUM FULL