Multiple error reports. - Mailing list pgsql-hackers

From Dmitriy Igrishin
Subject Multiple error reports.
Date
Msg-id CAAfz9KNbibCF9yD7Gv+XFUtB6eVAL_dDGe9AgrSqDmYyu5fRkg@mail.gmail.com
Whole thread Raw
List pgsql-hackers
According to http://www.postgresql.org/docs/9.2/static/libpq-async.html
"Even when PQresultStatus indicates a fatal error, PQgetResult should be called
until it returns a null pointer, to allow libpq to process the error information completely."
In libpq/fe-exec.c:PQexecFinish() error messages merges if more than one error
retrieved from the backend.
Can you please explain, in what cases the backend returns multiple error reports,
and is it guaranteed that all of them with the same SQLSTATE code? If it is, I would
also like to know, what a reason for sending the same error in multiple error
reports?

--
// Dmitriy.

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Redesigning checkpoint_segments
Next
From: Josh Berkus
Date:
Subject: Re: Redesigning checkpoint_segments