[共享存储]放开二阶段事务

This commit is contained in:
chenchao
2023-02-21 14:25:48 +08:00
parent 67dd64aa1b
commit d9f1f30ae0

View File

@ -17145,13 +17145,6 @@ TransactionStmt:
}
| PREPARE TRANSACTION Sconst
{
if (ENABLE_DMS) {
const char* message = "PREPARE TRANSACTION is not supported while DMS and DSS enabled";
InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc);
ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("PREPARE TRANSACTION is not supported while DMS and DSS enabled")));
}
TransactionStmt *n = makeNode(TransactionStmt);
n->kind = TRANS_STMT_PREPARE;
n->gid = $3;
@ -17159,13 +17152,6 @@ TransactionStmt:
}
| COMMIT PREPARED Sconst
{
if (ENABLE_DMS) {
const char* message = "COMMIT TRANSACTION is not supported while DMS and DSS enabled";
InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc);
ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("COMMIT TRANSACTION is not supported while DMS and DSS enabled")));
}
TransactionStmt *n = makeNode(TransactionStmt);
n->kind = TRANS_STMT_COMMIT_PREPARED;
n->gid = $3;
@ -17174,13 +17160,6 @@ TransactionStmt:
}
| COMMIT PREPARED Sconst WITH Sconst
{
if (ENABLE_DMS) {
const char* message = "COMMIT TRANSACTION is not supported while DMS and DSS enabled";
InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc);
ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("COMMIT TRANSACTION is not supported while DMS and DSS enabled")));
}
TransactionStmt *n = makeNode(TransactionStmt);
n->kind = TRANS_STMT_COMMIT_PREPARED;
n->gid = $3;
@ -17189,13 +17168,6 @@ TransactionStmt:
}
| ROLLBACK PREPARED Sconst
{
if (ENABLE_DMS) {
const char* message = "ROLLBACK TRANSACTION is not supported while DMS and DSS enabled";
InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc);
ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("ROLLBACK TRANSACTION is not supported while DMS and DSS enabled")));
}
TransactionStmt *n = makeNode(TransactionStmt);
n->kind = TRANS_STMT_ROLLBACK_PREPARED;
n->gid = $3;