mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Two-phase commit. Original patch by Heikki Linnakangas, with additional
hacking by Alvaro Herrera and Tom Lane.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.281 2005/06/05 22:32:57 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.282 2005/06/17 22:32:49 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1556,7 +1556,10 @@ typedef enum TransactionStmtKind
|
||||
TRANS_STMT_ROLLBACK,
|
||||
TRANS_STMT_SAVEPOINT,
|
||||
TRANS_STMT_RELEASE,
|
||||
TRANS_STMT_ROLLBACK_TO
|
||||
TRANS_STMT_ROLLBACK_TO,
|
||||
TRANS_STMT_PREPARE,
|
||||
TRANS_STMT_COMMIT_PREPARED,
|
||||
TRANS_STMT_ROLLBACK_PREPARED
|
||||
} TransactionStmtKind;
|
||||
|
||||
typedef struct TransactionStmt
|
||||
@@ -1564,6 +1567,7 @@ typedef struct TransactionStmt
|
||||
NodeTag type;
|
||||
TransactionStmtKind kind; /* see above */
|
||||
List *options; /* for BEGIN/START and savepoint commands */
|
||||
char *gid; /* for two-phase-commit related commands */
|
||||
} TransactionStmt;
|
||||
|
||||
/* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user