postgres.git / summary / log / commit / refs
commit 28c4dd14cdf2ebafc3d5ba838424c4f3e6703ec2
Author: Bruce Momjian <bruce@momjian.us>
Date: Tue Jul 06 19:51:59 2004 +0000
Add comment describing ereport() NOTICE/WARNING distinction.
src/include/utils/elog.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h
index 84ff8bdee1e..99e2932f3a8 100644
--- a/src/include/utils/elog.h
+++ b/src/include/utils/elog.h
@@ -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 $
*
*-------------------------------------------------------------------------
*/
@@ -32,7 +32,10 @@
#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
[parent: 33fe94b286c0]