Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 28c4dd1

Browse files
committed
Add comment describing ereport() NOTICE/WARNING distinction.
1 parent 33fe94b commit 28c4dd1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/include/utils/elog.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.69 2004/06/24 21:03:42 tgl Exp $
10+
* $PostgreSQL: pgsql/src/include/utils/elog.h,v 1.70 2004/07/06 19:51:59 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -32,7 +32,10 @@
3232
#define NOTICE 18 /* Helpful messages to users about query
3333
* operation; sent to client and server
3434
* log by default. */
35-
#define WARNING 19 /* Warnings */
35+
#define WARNING 19 /* Warnings. NOTICE is for expected messages
36+
* like implicit sequence creation by SERIAL.
37+
* WARNING is for unexpected messages.
38+
*/
3639
#define ERROR 20 /* user error - abort transaction; return
3740
* to known state */
3841
/* Save ERROR value in PGERROR so it can be restored when Win32 includes

0 commit comments

Comments
 (0)