1 /*-------------------------------------------------------------------------
4 * POSTGRES error logging definitions.
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: elog.h,v 1.13 1999/09/27 15:48:12 vadim Exp $
11 *-------------------------------------------------------------------------
16 #define NOTICE 0 /* random info - no special action */
17 #define ERROR (-1) /* user error - return to known state */
18 #define FATAL 1 /* fatal error - abort process */
19 #define REALLYFATAL 2 /* take down the other backends with me */
20 #define STOP REALLYFATAL
21 #define DEBUG (-2) /* debug message */
23 #define NOIND (-3) /* debug message, don't indent as far */
25 extern void elog(int lev, const char *fmt, ...);
28 extern int DebugFileOpen(void);