-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add infrastucture for "soft" error handle
- Loading branch information
Showing
6 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*------------------------------------------------------------------------- | ||
* | ||
* miscnodes.h | ||
* Definitions for hard-to-classify node types. | ||
* | ||
* src/include/nodes/miscnodes.h | ||
* | ||
*------------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef MISCNODES_H | ||
#define MISCNODES_H | ||
#include "nodes/nodes.h" | ||
|
||
typedef struct ErrorSaveContext | ||
{ | ||
NodeTag type; | ||
bool error_occurred; /* set to true if we detect a soft error */ | ||
} ErrorSaveContext; | ||
|
||
/* Often-useful macro for checking if a soft error was reported */ | ||
#define SOFT_ERROR_OCCURRED(escontext) \ | ||
((escontext) != NULL && IsA(escontext, ErrorSaveContext) && \ | ||
((ErrorSaveContext *) (escontext))->error_occurred) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters