async. query processing

Started by Ruslan A Dautkhanovalmost 21 years ago2 messagesbugs
Jump to latest
#1Ruslan A Dautkhanov
rusland@scn.ru

Hello !

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?

In the docs for PQsendQuery I not see any reference that PQgetResult can
indicate that
error raised. What changed since PG 7? I have a code in a client C
program, that not
work from PG8...

Thanks a lot for any comments

--
Ruslan A Dautkhanov

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ruslan A Dautkhanov (#1)
Re: async. query processing

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