diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/transam.h | 3 | ||||
| -rw-r--r-- | src/include/access/xact.h | 5 | ||||
| -rw-r--r-- | src/include/commands/command.h | 4 | ||||
| -rw-r--r-- | src/include/nodes/nodes.h | 3 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 12 | ||||
| -rw-r--r-- | src/include/utils/tqual.h | 5 |
6 files changed, 24 insertions, 8 deletions
diff --git a/src/include/access/transam.h b/src/include/access/transam.h index 8fdd2db9ce..c5d40ac54a 100644 --- a/src/include/access/transam.h +++ b/src/include/access/transam.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: transam.h,v 1.17 1998/12/16 11:52:10 vadim Exp $ + * $Id: transam.h,v 1.18 1998/12/18 09:09:52 vadim Exp $ * * NOTES * Transaction System Version 101 now support proper oid @@ -160,6 +160,7 @@ extern void TransBlockNumberSetXidStatus(Relation relation, /* in transam/varsup.c */ extern void VariableRelationPutNextXid(TransactionId xid); extern void GetNewTransactionId(TransactionId *xid); +extern void ReadNewTransactionId(TransactionId *xid); extern void GetNewObjectId(Oid *oid_return); extern void CheckMaxObjectId(Oid assigned_oid); diff --git a/src/include/access/xact.h b/src/include/access/xact.h index 6b0aae443f..e624f3b1e5 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: xact.h,v 1.18 1998/12/15 12:46:47 vadim Exp $ + * $Id: xact.h,v 1.19 1998/12/18 09:09:52 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -36,8 +36,9 @@ typedef struct TransactionStateData #define XACT_DIRTY_READ 0 /* not implemented */ #define XACT_READ_COMMITTED 1 #define XACT_REPEATABLE_READ 2 /* not implemented */ -#define XACT_SERIALIZED 3 +#define XACT_SERIALIZABLE 3 +extern int DefaultXactIsoLevel; extern int XactIsoLevel; /* ---------------- diff --git a/src/include/commands/command.h b/src/include/commands/command.h index 4091a5583e..8d2d065351 100644 --- a/src/include/commands/command.h +++ b/src/include/commands/command.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: command.h,v 1.10 1998/09/01 04:35:25 momjian Exp $ + * $Id: command.h,v 1.11 1998/12/18 09:09:52 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -44,4 +44,6 @@ extern void PortalCleanup(Portal portal); extern void PerformAddAttribute(char *relationName, char *userName, bool inh, ColumnDef *colDef); +extern void LockTableCommand(LockStmt *lockstmt); + #endif /* COMMAND_H */ diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index 526e847de9..5b9237c5f0 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: nodes.h,v 1.32 1998/12/04 15:34:44 thomas Exp $ + * $Id: nodes.h,v 1.33 1998/12/18 09:09:53 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -190,6 +190,7 @@ typedef enum NodeTag T_CreateUserStmt, T_AlterUserStmt, T_DropUserStmt, + T_LockStmt, T_A_Expr = 700, T_Attr, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 20fc0788bd..9316fa67dd 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.62 1998/12/04 15:34:44 thomas Exp $ + * $Id: parsenodes.h,v 1.63 1998/12/18 09:09:54 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -574,6 +574,16 @@ typedef struct VariableResetStmt char *name; } VariableResetStmt; +/* ---------------------- + * LOCK Statement + * ---------------------- + */ +typedef struct LockStmt +{ + NodeTag type; + char *relname; /* relation to lock */ + int mode; /* lock mode */ +} LockStmt; /***************************************************************************** * Optimizable Statements diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index b123744f19..17ff6f3d90 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: tqual.h,v 1.17 1998/12/16 11:52:11 vadim Exp $ + * $Id: tqual.h,v 1.18 1998/12/18 09:09:55 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -31,6 +31,7 @@ typedef SnapshotData *Snapshot; extern Snapshot SnapshotDirty; extern Snapshot QuerySnapshot; +extern Snapshot SerializableSnapshot; #define IsSnapshotNow(snapshot) ((Snapshot) snapshot == SnapshotNow) #define IsSnapshotSelf(snapshot) ((Snapshot) snapshot == SnapshotSelf) @@ -99,7 +100,7 @@ extern int HeapTupleSatisfiesUpdate(HeapTuple tuple); extern void setheapoverride(bool on); -extern Snapshot GetSnapshotData(void); +extern Snapshot GetSnapshotData(bool serializable); extern void SetQuerySnapshot(void); extern void FreeXactSnapshot(void); |
