PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
logging.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * logging.h
4  * prototypes for logging functions
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef PG_REWIND_LOGGING_H
13 #define PG_REWIND_LOGGING_H
14 
15 /* progress counters */
16 extern uint64 fetch_size;
17 extern uint64 fetch_done;
18 
19 /*
20  * Enumeration to denote pg_log modes
21  */
22 typedef enum
23 {
28 } eLogType;
29 
30 extern void pg_log(eLogType type, const char *fmt,...) pg_attribute_printf(2, 3);
31 extern void pg_fatal(const char *fmt,...) pg_attribute_printf(1, 2) pg_attribute_noreturn();
32 
33 extern void progress_report(bool force);
34 
35 #endif /* PG_REWIND_LOGGING_H */
void void pg_attribute_noreturn()
#define pg_attribute_printf(f, a)
Definition: c.h:634
uint64 fetch_done
Definition: logging.c:22
eLogType
Definition: logging.h:22
uint64 fetch_size
Definition: logging.c:21
void progress_report(bool force)
Definition: logging.c:102
void pg_log(eLogType type, const char *fmt,...) pg_attribute_printf(2
void void pg_fatal(const char *fmt,...) pg_attribute_printf(1