mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Change elog(WARN) to elog(ERROR) and elog(ABORT).
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
 *
 | 
			
		||||
 * $Id: elog.h,v 1.5 1997/09/08 02:39:39 momjian Exp $
 | 
			
		||||
 * $Id: elog.h,v 1.6 1998/01/05 03:35:05 momjian Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
@@ -14,18 +14,21 @@
 | 
			
		||||
#define ELOG_H
 | 
			
		||||
 | 
			
		||||
#define NOTICE	0				/* random info - no special action */
 | 
			
		||||
#define WARN	-1				/* Warning error - return to known state */
 | 
			
		||||
#define ERROR	-2				/* user error - return to known state */
 | 
			
		||||
#define ABORT	-1				/* system error - return to known state */
 | 
			
		||||
#define FATAL	1				/* Fatal error - abort process */
 | 
			
		||||
#define DEBUG	-2				/* debug message */
 | 
			
		||||
#define NOIND	-3				/* debug message, don't indent as far */
 | 
			
		||||
#define DEBUG	-3				/* debug message */
 | 
			
		||||
#define NOIND	-4				/* debug message, don't indent as far */
 | 
			
		||||
 | 
			
		||||
#ifdef NOT_USED
 | 
			
		||||
#define PTIME	0x100			/* prepend time to message */
 | 
			
		||||
#define POS		0x200			/* prepend source position to message */
 | 
			
		||||
#define USERMSG 0x400			/* send message to user */
 | 
			
		||||
#define TERM	0x800			/* send message to terminal */
 | 
			
		||||
#define DBLOG	0x1000			/* put message in per db log */
 | 
			
		||||
#define SLOG	0x2000			/* put message in system log */
 | 
			
		||||
#define ABORT	0x4000			/* abort process after logging */
 | 
			
		||||
#define ABORTX	0x4000			/* abort process after logging */
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define ELOG_MAXLEN 4096
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user