Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5fb10222
Commit
5fb10222
authored
Dec 06, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't include miscadmin.h in elog.h, since the former is not part of
the installed header file set.
parent
a0f86363
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
19 deletions
+24
-19
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+2
-1
src/include/utils/elog.h
src/include/utils/elog.h
+22
-18
No files found.
src/backend/utils/error/elog.c
View file @
5fb10222
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.7
2 2000/12/03 20:45:3
6 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.7
3 2000/12/06 17:25:4
6 tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,6 +33,7 @@
#include "commands/copy.h"
#include "libpq/libpq.h"
#include "libpq/pqformat.h"
#include "miscadmin.h"
#include "storage/proc.h"
#include "tcop/tcopprot.h"
#include "utils/memutils.h"
...
...
src/include/utils/elog.h
View file @
5fb10222
...
...
@@ -7,15 +7,13 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: elog.h,v 1.
19 2000/12/03 10:27:29 vadim
Exp $
* $Id: elog.h,v 1.
20 2000/12/06 17:25:45 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef ELOG_H
#define ELOG_H
#include "miscadmin.h"
#define NOTICE 0
/* random info - no special action */
#define ERROR (-1)
/* user error - return to known state */
#define FATAL 1
/* fatal error - abort process */
...
...
@@ -30,23 +28,29 @@ extern int Use_syslog;
#endif
/*
* If StopIfError > 0 signal handlers
do
n't do
* elog(ERROR|FATAL)
but remember what action wa
s
* required with QueryCancel & ExitAfterAbort
* If StopIfError > 0 signal handlers
must
n't do
* elog(ERROR|FATAL)
, instead remember what action i
s
* required with QueryCancel & ExitAfterAbort
.
*/
extern
uint32
StopIfError
;
/* duplicates access/xlog.h */
extern
bool
QueryCancel
;
/* duplicates miscadmin.h */
extern
bool
ExitAfterAbort
;
#define START_CRIT_CODE StopIfError++
#define END_CRIT_CODE \
if (!StopIfError)\
elog(STOP, "Not in critical section");\
StopIfError--;\
if (!StopIfError && QueryCancel)\
{\
if (ExitAfterAbort)\
elog(FATAL, "The system is shutting down");\
else\
elog(ERROR, "Query was cancelled.");\
}
#define START_CRIT_CODE (StopIfError++)
#define END_CRIT_CODE \
do { \
if (!StopIfError) \
elog(STOP, "Not in critical section"); \
StopIfError--; \
if (!StopIfError && QueryCancel) \
{ \
if (ExitAfterAbort) \
elog(FATAL, "The system is shutting down"); \
else \
elog(ERROR, "Query was cancelled."); \
} \
} while(0)
extern
bool
Log_timestamp
;
extern
bool
Log_pid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment