Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ad7b47aa
Commit
ad7b47aa
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix sloppy macro coding (not enough parentheses).
parent
ff7da2f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/access/xact.h
+22
-27
22 additions, 27 deletions
src/include/access/xact.h
with
22 additions
and
27 deletions
src/include/access/xact.h
+
22
−
27
View file @
ad7b47aa
/*-------------------------------------------------------------------------
*
* xact.h
* postgres transaction system
header
* postgres transaction system
definitions
*
*
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: xact.h,v 1.2
6
2000/0
6/08 22:37:38 momjian
Exp $
* $Id: xact.h,v 1.2
7
2000/0
7/28 01:04:40 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -17,6 +17,17 @@
#include
"access/transam.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
* ----------------
...
...
@@ -31,16 +42,7 @@ typedef struct TransactionStateData
int
blockState
;
}
TransactionStateData
;
/*
* 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
;
typedef
TransactionStateData
*
TransactionState
;
/* ----------------
* transaction states
...
...
@@ -64,23 +66,16 @@ extern int XactIsoLevel;
#define TBLOCK_ABORT 4
#define TBLOCK_ENDABORT 5
typedef
TransactionStateData
*
TransactionState
;
#define TransactionIdIsValid(xid) ((bool) (xid != NullTransactionId))
/* ----------------
* transaction ID manipulation macros
* ----------------
*/
#define TransactionIdIsValid(xid) ((bool) ((xid) != NullTransactionId))
#define TransactionIdEquals(id1, id2) ((bool) ((id1) == (id2)))
#define TransactionIdStore(xid, dest) \
(*((TransactionId*)dest) = (TransactionId)xid)
(*((TransactionId*)
(
dest)
)
= (TransactionId)
(
xid)
)
#define StoreInvalidTransactionId(dest) \
(*((TransactionId*)dest) = NullTransactionId)
/* ----------------------------------------------------------------
* TransactionIdEquals
* ----------------------------------------------------------------
*/
#define TransactionIdEquals(id1, id2) \
( \
((bool) ((id1) == (id2))) \
)
(*((TransactionId*) (dest)) = NullTransactionId)
/* ----------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment