aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-07-06 19:51:59 +0000
committerBruce Momjian <bruce@momjian.us>2004-07-06 19:51:59 +0000
commit28c4dd14cdf2ebafc3d5ba838424c4f3e6703ec2 (patch)
treee77499e15d7311b811175f1a93e832afc03abf9e /src
parent33fe94b286c01e082f2649c5f75ce93aa0069482 (diff)
downloadpostgresql-28c4dd14cdf2ebafc3d5ba838424c4f3e6703ec2.tar.gz
postgresql-28c4dd14cdf2ebafc3d5ba838424c4f3e6703ec2.zip
Add comment describing ereport() NOTICE/WARNING distinction.
Diffstat (limited to 'src')
-rw-r--r--src/include/utils/elog.h7
1 files 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