Be less wishy-washy in the documentation and comments about whether a
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Jan 2008 22:18:20 +0000 (22:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Jan 2008 22:18:20 +0000 (22:18 +0000)
ParameterStatus message can be sent during COPY OUT: it's definitely
possible, since COPY from a SELECT subquery can trigger any user-defined
function.

doc/src/sgml/protocol.sgml
src/interfaces/libpq/fe-protocol3.c

index 13ab98a4fedac4b58e45305c4bb8c12fb8114d10..c26cccc45fd1982620efb72f087918e95e70130d 100644 (file)
    </para>
 
    <para>
-    It is possible for NoticeResponse messages to be interspersed between
-    CopyData messages; frontends must handle this case, and should be
-    prepared for other asynchronous message types as well (see <xref
-    linkend="protocol-async">).  Otherwise, any message type other than
+    It is possible for NoticeResponse and ParameterStatus messages to be
+    interspersed between CopyData messages; frontends must handle these cases,
+    and should be prepared for other asynchronous message types as well (see
+    <xref linkend="protocol-async">).  Otherwise, any message type other than
     CopyData or CopyDone may be treated as terminating copy-out mode.
    </para>
 
index 5e352480cd9da3d4b7e56270c273562822ad7fbf..f4735885263cc359744c59768553d5c59e3293b1 100644 (file)
@@ -1310,9 +1310,8 @@ getCopyDataMessage(PGconn *conn)
                /*
                 * If it's a legitimate async message type, process it.  (NOTIFY
                 * messages are not currently possible here, but we handle them for
-                * completeness.  NOTICE is definitely possible, and ParameterStatus
-                * could probably be made to happen.)  Otherwise, if it's anything
-                * except Copy Data, report end-of-copy.
+                * completeness.)  Otherwise, if it's anything except Copy Data,
+                * report end-of-copy.
                 */
                switch (id)
                {