Re: persistent variables between cross-calls in C functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: persistent variables between cross-calls in C functions
Дата
Msg-id 27885.1048310421@sss.pgh.pa.us
обсуждение исходный текст
Ответ на persistent variables between cross-calls in C functions  ("ff" <ff-@uol.com.br>)
Список pgsql-interfaces
"ff" <ff-@uol.com.br> writes:
> I could not find any way to store a value in a C function
> between calls.

A static variable such as you illustrated should work fine --- at least
for successive calls within a single session.  It will not provide
communications across sessions.  For that you'd need to use a file or
grab some shared memory (this is doable but bear in mind that it's a
very finite resource).
        regards, tom lane



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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: [HACKERS] Roadmap for FE/BE protocol redesign
Следующее
От: "D'Arcy J.M. Cain"
Дата:
Сообщение: Re: embedded sql interface to ip address type