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
ad7b47aa
Commit
ad7b47aa
authored
Jul 28, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sloppy macro coding (not enough parentheses).
parent
ff7da2f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
27 deletions
+22
-27
src/include/access/xact.h
src/include/access/xact.h
+22
-27
No files found.
src/include/access/xact.h
View file @
ad7b47aa
/*-------------------------------------------------------------------------
/*-------------------------------------------------------------------------
*
*
* xact.h
* xact.h
* postgres transaction system
header
* postgres transaction system
definitions
*
*
*
*
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: xact.h,v 1.2
6 2000/06/08 22:37:38 momjian
Exp $
* $Id: xact.h,v 1.2
7 2000/07/28 01:04:40 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -17,6 +17,17 @@
...
@@ -17,6 +17,17 @@
#include "access/transam.h"
#include "access/transam.h"
#include "utils/nabstime.h"
#include "utils/nabstime.h"
/*
* Xact isolation levels
*/
#define XACT_DIRTY_READ 0
/* not implemented */
#define XACT_READ_COMMITTED 1
#define XACT_REPEATABLE_READ 2
/* not implemented */
#define XACT_SERIALIZABLE 3
extern
int
DefaultXactIsoLevel
;
extern
int
XactIsoLevel
;
/* ----------------
/* ----------------
* transaction state structure
* transaction state structure
* ----------------
* ----------------
...
@@ -31,16 +42,7 @@ typedef struct TransactionStateData
...
@@ -31,16 +42,7 @@ typedef struct TransactionStateData
int
blockState
;
int
blockState
;
}
TransactionStateData
;
}
TransactionStateData
;
/*
typedef
TransactionStateData
*
TransactionState
;
* Xact isolation levels
*/
#define XACT_DIRTY_READ 0
/* not implemented */
#define XACT_READ_COMMITTED 1
#define XACT_REPEATABLE_READ 2
/* not implemented */
#define XACT_SERIALIZABLE 3
extern
int
DefaultXactIsoLevel
;
extern
int
XactIsoLevel
;
/* ----------------
/* ----------------
* transaction states
* transaction states
...
@@ -64,23 +66,16 @@ extern int XactIsoLevel;
...
@@ -64,23 +66,16 @@ extern int XactIsoLevel;
#define TBLOCK_ABORT 4
#define TBLOCK_ABORT 4
#define TBLOCK_ENDABORT 5
#define TBLOCK_ENDABORT 5
typedef
TransactionStateData
*
TransactionState
;
/* ----------------
* transaction ID manipulation macros
#define TransactionIdIsValid(xid) ((bool) (xid != NullTransactionId))
* ----------------
*/
#define TransactionIdIsValid(xid) ((bool) ((xid) != NullTransactionId))
#define TransactionIdEquals(id1, id2) ((bool) ((id1) == (id2)))
#define TransactionIdStore(xid, dest) \
#define TransactionIdStore(xid, dest) \
(*((TransactionId*)
dest) = (TransactionId)xid
)
(*((TransactionId*)
(dest)) = (TransactionId) (xid)
)
#define StoreInvalidTransactionId(dest) \
#define StoreInvalidTransactionId(dest) \
(*((TransactionId*)dest) = NullTransactionId)
(*((TransactionId*) (dest)) = NullTransactionId)
/* ----------------------------------------------------------------
* TransactionIdEquals
* ----------------------------------------------------------------
*/
#define TransactionIdEquals(id1, id2) \
( \
((bool) ((id1) == (id2))) \
)
/* ----------------
/* ----------------
...
...
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