preserving state across external functions calls

Поиск
Список
Период
Сортировка
От Maksim Likharev
Тема preserving state across external functions calls
Дата
Msg-id 56510AAEF435D240958D1CE8C6B1770A014A0BD6@mailc03.aurigin.com
обсуждение исходный текст
Список pgsql-interfaces
Hi,
I have a question about a correct way of preserving state/some
information across pg functions call
Let's imagine following example:

External C functions:

FUNCTION_INIT_SOMETHING     - allocates a memory, returns some kind of
handle
FUNCTION_DO_SOMETHING      - use allocated memory
FUNCTION_FREE_SOMETHING  - deallocate using handle

and of cause general idea automatic deallocation at the and of session
scope
Thank you.





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

Предыдущее
От: "dfssd"
Дата:
Сообщение: Retrive Image from postgres database
Следующее
От: "Achmad M. Amin"
Дата:
Сообщение: Translate SQL Server SP to PostgresSQL SP