Re: Maintaining state across function calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Maintaining state across function calls
Дата
Msg-id 10942.1353353842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Maintaining state across function calls  (matt@byrney.com)
Список pgsql-general
matt@byrney.com writes:
> Thanks for this.  Out of curiosity, why is a static a bad way to do this?

Well, it wouldn't allow more than one instance of the function per
query, and it wouldn't reset correctly after an error, and surely you
agree that your proposal of making the user do a separate "reset" step
is an unreliable and unpleasant-to-use kluge.

            regards, tom lane


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

Предыдущее
От: "Welty, Richard"
Дата:
Сообщение: Re: Experiences with pl/Java
Следующее
От: Jeff Ross
Дата:
Сообщение: Split_part on a CR