Re: async. query processing - Mailing list pgsql-bugs

From Tom Lane
Subject Re: async. query processing
Date
Msg-id 18610.1120141492@sss.pgh.pa.us
Whole thread Raw
In response to async. query processing  (Ruslan A Dautkhanov <rusland@scn.ru>)
List pgsql-bugs
Ruslan A Dautkhanov <rusland@scn.ru> writes:
> How to distinguish is PQgetResult(pgConn) return NULL when just no more
> data to process
> OR when hard error occur during fetching data from DB?

An error will give you back an error PGresult object, not null.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Ruslan A Dautkhanov
Date:
Subject: async. query processing
Next
From: "Bobi Ivanov"
Date:
Subject: Re: BUG #1735: row number -1 is out of range 0..-1 error