Re: How to discard partially retrieved result set with the C API?

Поиск
Список
Период
Сортировка
От Dmitriy Igrishin
Тема Re: How to discard partially retrieved result set with the C API?
Дата
Msg-id CAAfz9KNmqLBmnvWaSBJ90Tk7a2ZWuH4nKsrzP6E7vbM=umc2-Q@mail.gmail.com
обсуждение исходный текст
Ответ на How to discard partially retrieved result set with the C API?  (邓尧 <torshie@gmail.com>)
Ответы Re: How to discard partially retrieved result set with the C API?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general


2014-02-18 13:44 GMT+04:00 邓尧 <torshie@gmail.com>:
When single row mode is enabled, after retrieving part of the result set, I'm no longer interested in the rest of it (due to error handling or other reasons). How can I discard the result set without repeatedly calling PQgetResult() in such situation ?
The result set may be quite large and it's inefficient to call PQgetResult() repeatedly, so it's necessary to do so sometimes.

Thanks
Yao
I think you should use PQcancel().


--
// Dmitriy.

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

Предыдущее
От: 邓尧
Дата:
Сообщение: How to discard partially retrieved result set with the C API?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: How to discard partially retrieved result set with the C API?