Improved remote error and notice handling.
authorMarko Kreen <markokr@gmail.com>
Mon, 11 Jan 2010 10:55:58 +0000 (12:55 +0200)
committerMarko Kreen <markokr@gmail.com>
Mon, 11 Jan 2010 10:55:58 +0000 (12:55 +0200)
commit868ccca247e0e50ca4a4759e4e659f05590d9283
treeee1413838dfc0e7f4b2d21c2c61656b03ce05383
parentcb91cec92b5976455bd60fd95979a1cc39a57ea1
Improved remote error and notice handling.

- Register libpq notice handler with PQsetNoticeReceiver
- Extract details from err/notice with PQresultErrorField
  and pass to ereport().
- Improve state-machine in another_result().
expected/plproxy_encoding.out
expected/plproxy_test.out
sql/plproxy_test.sql
src/execute.c
src/main.c
src/plproxy.h