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
8db20b4a
Commit
8db20b4a
authored
Aug 10, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove error files.
parent
87cfb8eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
119 deletions
+0
-119
src/include/utils/exc.h
src/include/utils/exc.h
+0
-88
src/include/utils/excid.h
src/include/utils/excid.h
+0
-31
No files found.
src/include/utils/exc.h
deleted
100644 → 0
View file @
87cfb8eb
/*-------------------------------------------------------------------------
*
* exc.h
* POSTGRES exception handling definitions.
*
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: exc.h,v 1.24 2002/06/20 20:29:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXC_H
#define EXC_H
#include <setjmp.h>
extern
char
*
ExcFileName
;
extern
Index
ExcLineNumber
;
typedef
sigjmp_buf
ExcContext
;
typedef
Exception
*
ExcId
;
typedef
long
ExcDetail
;
typedef
char
*
ExcData
;
typedef
struct
ExcFrame
{
struct
ExcFrame
*
link
;
ExcContext
context
;
ExcId
id
;
ExcDetail
detail
;
ExcData
data
;
ExcMessage
message
;
}
ExcFrame
;
extern
ExcFrame
*
ExcCurFrameP
;
/* These are not used anywhere 1998/6/15 */
#define ExcBegin() \
do { \
ExcFrame exception; \
\
exception.link = ExcCurFrameP; \
if (sigsetjmp(exception.context, 1) == 0) \
{ \
ExcCurFrameP = &exception;
#define ExcExcept() \
} \
ExcCurFrameP = exception.link; \
} \
else \
{ \
{
#define ExcEnd() \
} \
} \
} while(0)
#define raise4(x, t, d, message) \
ExcRaise(&(x), (ExcDetail)(t), (ExcData)(d), (ExcMessage)(message))
#define reraise() \
raise4(*exception.id,exception.detail,exception.data,exception.message)
typedef
void
ExcProc
(
Exception
*
,
ExcDetail
,
ExcData
,
ExcMessage
);
/*
* prototypes for functions in exc.c
*/
extern
void
EnableExceptionHandling
(
bool
on
);
extern
void
ExcRaise
(
Exception
*
excP
,
ExcDetail
detail
,
ExcData
data
,
ExcMessage
message
);
/*
* prototypes for functions in excabort.c
*/
extern
void
ExcAbort
(
const
Exception
*
excP
,
ExcDetail
detail
,
ExcData
data
,
ExcMessage
message
);
#endif
/* EXC_H */
src/include/utils/excid.h
deleted
100644 → 0
View file @
87cfb8eb
/*-------------------------------------------------------------------------
*
* excid.h
* POSTGRES known exception identifier definitions.
*
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: excid.h,v 1.14 2002/06/20 20:29:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef EXCID_H
#define EXCID_H
/* note: these first three are also declared in postgres.h */
extern
DLLIMPORT
Exception
FailedAssertion
;
extern
DLLIMPORT
Exception
BadState
;
extern
DLLIMPORT
Exception
BadArg
;
extern
DLLIMPORT
Exception
Unimplemented
;
extern
DLLIMPORT
Exception
CatalogFailure
;
/* XXX inconsistent naming
* style */
extern
DLLIMPORT
Exception
InternalError
;
/* XXX inconsistent naming
* style */
extern
DLLIMPORT
Exception
SemanticError
;
/* XXX inconsistent naming
* style */
extern
DLLIMPORT
Exception
SystemError
;
/* XXX inconsistent naming style */
#endif
/* EXCID_H */
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