*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.178 2006/01/11 08:43:13 neilc Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.179 2006/01/25 20:44:32 tgl Exp $
*
*-------------------------------------------------------------------------
*/
}
/*
- * Check for NOTICE messages coming back from the server. Since the
- * server might generate multiple notices during the COPY, we have to
- * consume those in a reasonably prompt fashion to prevent the comm
- * buffers from filling up and possibly blocking the server.
+ * Process any NOTICE or NOTIFY messages that might be pending in the
+ * input buffer. Since the server might generate many notices during
+ * the COPY, we want to clean those out reasonably promptly to prevent
+ * indefinite expansion of the input buffer. (Note: the actual read
+ * of input data into the input buffer happens down inside pqSendSome,
+ * but it's not authorized to get rid of the data again.)
*/
- if (!PQconsumeInput(conn))
- return -1; /* I/O failure */
parseInput(conn);
if (nbytes > 0)