Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d27020e

Browse files
committed
do not broadcast VacuumStmt
1 parent 12b1491 commit d27020e

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

src/ddl.c

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ MtmProcessUtilityReciever(PlannedStmt *pstmt, const char *queryString,
572572
{
573573
case T_CreateTableSpaceStmt:
574574
case T_DropTableSpaceStmt:
575-
case T_VacuumStmt:
575+
// case T_VacuumStmt:
576576
Assert(MtmCapturedDDL == NULL);
577577
MtmCapturedDDL = copyObject(parsetree);
578578
captured = true;
@@ -727,6 +727,7 @@ MtmProcessUtilitySender(PlannedStmt *pstmt, const char *queryString,
727727
case T_DropdbStmt:
728728
case T_DeclareCursorStmt:
729729
case T_ClosePortalStmt:
730+
case T_VacuumStmt:
730731
skipCommand = true;
731732
break;
732733

@@ -746,16 +747,6 @@ MtmProcessUtilitySender(PlannedStmt *pstmt, const char *queryString,
746747
break;
747748
}
748749

749-
case T_VacuumStmt:
750-
{
751-
skipCommand = true;
752-
if (context == PROCESS_UTILITY_TOPLEVEL)
753-
{
754-
MtmProcessDDLCommand(stmt_string, false);
755-
}
756-
break;
757-
}
758-
759750
/* Detect temp tables access */
760751
case T_CreateDomainStmt:
761752
{
@@ -1125,11 +1116,11 @@ MtmApplyDDLMessage(const char *messageBody, bool transactional)
11251116

11261117
switch (nodeTag(MtmCapturedDDL))
11271118
{
1128-
case T_VacuumStmt:
1129-
{
1130-
ExecVacuum((VacuumStmt *) MtmCapturedDDL, 1);
1131-
break;
1132-
}
1119+
// case T_VacuumStmt:
1120+
// {
1121+
// ExecVacuum((VacuumStmt *) MtmCapturedDDL, 1);
1122+
// break;
1123+
// }
11331124
case T_IndexStmt:
11341125
{
11351126
IndexStmt *indexStmt = (IndexStmt *) MtmCapturedDDL;

0 commit comments

Comments
 (0)