PostgreSQL Source Code
git master
Main Page
Namespaces
Data Structures
Files
File List
Globals
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-2016, 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
{
24
PG_DEBUG
,
25
PG_PROGRESS
,
26
PG_WARNING
,
27
PG_FATAL
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 */
PG_PROGRESS
Definition:
logging.h:25
pg_attribute_noreturn
void void pg_attribute_noreturn()
pg_attribute_printf
#define pg_attribute_printf(f, a)
Definition:
c.h:630
fetch_done
uint64 fetch_done
Definition:
logging.c:22
eLogType
eLogType
Definition:
logging.h:22
fetch_size
uint64 fetch_size
Definition:
logging.c:21
PG_WARNING
Definition:
logging.h:26
PG_DEBUG
Definition:
logging.h:24
progress_report
void progress_report(bool force)
Definition:
logging.c:102
pg_log
void pg_log(eLogType type, const char *fmt,...) pg_attribute_printf(2
pg_fatal
void void pg_fatal(const char *fmt,...) pg_attribute_printf(1
PG_FATAL
Definition:
logging.h:27
src
bin
pg_rewind
logging.h
Generated on Sat Jun 4 2016 12:15:16 for PostgreSQL Source Code by
1.8.8