Test a list that contains PlannedStmt nodes */
| 3627 | |
| 3628 | /* Test a list that contains PlannedStmt nodes */ |
| 3629 | static bool |
| 3630 | IsTransactionExitStmtList(List *pstmts) |
| 3631 | { |
| 3632 | if (list_length(pstmts) == 1) |
| 3633 | { |
| 3634 | PlannedStmt *pstmt = linitial_node(PlannedStmt, pstmts); |
| 3635 | |
| 3636 | if (pstmt->commandType == CMD_UTILITY && |
| 3637 | IsTransactionExitStmt(pstmt->utilityStmt)) |
| 3638 | return true; |
| 3639 | } |
| 3640 | return false; |
| 3641 | } |
| 3642 | |
| 3643 | /* Test a list that contains PlannedStmt nodes */ |
| 3644 | static bool |