OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add new elog() levels to stored procedure languages. plperl DEBUG hack
[pg-rex/syncrep.git]
/
src
/
pl
/
plperl
/
eloglvl.c
1
#include "postgres.h"
2
3
#include "utils/elog.h"
4
5
/*
6
* This kludge is necessary because of the conflicting
7
* definitions of 'DEBUG' between postgres and perl.
8
* we'll live.
9
*/
10
11
#include "eloglvl.h"
12
13
int
14
elog_DEBUG(void)
15
{
16
return DEBUG1;
17
}
18
19
int
20
elog_LOG(void)
21
{
22
return LOG;
23
}
24
25
int
26
elog_INFO(void)
27
{
28
return INFO;
29
}
30
31
int
32
elog_NOTICE(void)
33
{
34
return NOTICE;
35
}
36
37
int
38
elog_WARNING(void)
39
{
40
return WARNING;
41
}
42
43
int
44
elog_ERROR(void)
45
{
46
return ERROR;
47
}
48