How to discard partially retrieved result set with the C API? - Mailing list pgsql-general

From 邓尧
Subject How to discard partially retrieved result set with the C API?
Date
Msg-id CAOb3iujbTXqKPp8o4q7tQr-rPnS_QJvEONqDT_Z28=nAbSsVgg@mail.gmail.com
Whole thread Raw
Responses Re: How to discard partially retrieved result set with the C API?  (Dmitriy Igrishin <dmitigr@gmail.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Vincent de Phily
Date:
Subject: Re: Deleted files still open long after droping a database
Next
From: Dmitriy Igrishin
Date:
Subject: Re: How to discard partially retrieved result set with the C API?