Re: are there static variables in pgsql?

Поиск
Список
Период
Сортировка
От Terry Lee Tucker
Тема Re: are there static variables in pgsql?
Дата
Msg-id 200606101837.35415.terry@esc1.com
обсуждение исходный текст
Ответ на are there static variables in pgsql?  ("Yavuz Kavus" <yavuzkavus@gmail.com>)
Ответы Re: are there static variables in pgsql?  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
On Saturday 10 June 2006 06:31 pm, "Yavuz Kavus" <yavuzkavus@gmail.com> thus
communicated:
--> i am writing a recursive procedure in pl/pgsql.
--> i need to check whether a condition is true in any step of recursive
 calls. -->
--> if i get a true response in one call, i wont make other recursive calls
--> anymore, because i get what i need.
--> if no one gives me a true response, then uppest procedure will return
 false --> as a result.
-->
--> i think i may achieve this with a static variable(shared among all
 calls). -->
--> is it possible?
-->
--> or another solution?
-->
--> thanks a lot for any help.
-->
I don't know of any static variable capability; however, I use various utility
tables to accomplish this type of task. You can insert records into a table
like this while inside a transaction and the current process will be the only
process that can see it. When you are through with it, delete the record, all
within the same transaction, and your purpose will be served.

HTH...

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

Предыдущее
От: "Yavuz Kavus"
Дата:
Сообщение: are there static variables in pgsql?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: TOAST not working