From f690920a752fa8e59dc9536dd14194b2141163d2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 24 Apr 2003 21:16:45 +0000 Subject: Infrastructure for upgraded error reporting mechanism. elog.c is rewritten and the protocol is changed, but most elog calls are still elog calls. Also, we need to contemplate mechanisms for controlling all this functionality --- eg, how much stuff should appear in the postmaster log? And what API should libpq expose for it? --- doc/src/sgml/protocol.sgml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 52d2a60c3b2..7b5f9593a98 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -3862,6 +3862,14 @@ byte (except for startup packets, which have no type byte). Also note that PasswordMessage now has a type byte. + +ErrorResponse and NoticeResponse ('E' and 'N') +messages now contain multiple fields, from which the client code may +assemble an error message of the desired level of verbosity. Note that +individual fields will typically not end with a newline, whereas the single +string sent in the older protocol always did. + + COPY data is now encapsulated into CopyData and CopyDone messages. There is a well-defined way to recover from errors during COPY. The special -- cgit v1.2.3