]> granicus.if.org Git - postgresql/commitdiff
Add comment describing ereport() NOTICE/WARNING distinction.
authorBruce Momjian <bruce@momjian.us>
Tue, 6 Jul 2004 19:51:59 +0000 (19:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 6 Jul 2004 19:51:59 +0000 (19:51 +0000)
src/include/utils/elog.h

index 84ff8bdee1e9fca811dd4603a69929593ff3cca9..99e2932f3a8a0304b996205c37581564740c784a 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.69 2004/06/24 21:03:42 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.70 2004/07/06 19:51:59 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #define NOTICE         18                      /* Helpful messages to users about query
                                                                 * operation;  sent to client and server
                                                                 * log by default. */
-#define WARNING                19                      /* Warnings */
+#define WARNING                19                      /* Warnings.  NOTICE is for expected messages
+                                                                * like implicit sequence creation by SERIAL.
+                                                                * WARNING is for unexpected messages.
+                                                                */
 #define ERROR          20                      /* user error - abort transaction; return
                                                                 * to known state */
 /* Save ERROR value in PGERROR so it can be restored when Win32 includes