Re: How to check for pending CancelRequest from C/C++ function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to check for pending CancelRequest from C/C++ function
Дата
Msg-id 3690.1389022325@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to check for pending CancelRequest from C/C++ function  (Stephen Woodbridge <woodbri@swoodbridge.com>)
Ответы Re: How to check for pending CancelRequest from C/C++ function
Список pgsql-general
Stephen Woodbridge <woodbri@swoodbridge.com> writes:
> I writing some functions for postgresql extension in C/C++ and I would
> like to be able to check for a pending CancelRequest from the frontend
> so I can take appropriate action to honor this request.

Put "CHECK_FOR_INTERRUPTS();" in some suitably safe place.

            regards, tom lane


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