oncommit-cci-remove.patch

text/x-diff

Filename: oncommit-cci-remove.patch
Type: text/x-diff
Part: 0
Message: Removal of unnecessary CommandCounterIncrement() when doing ON COMMIT DELETE ROWS

Patch

Format: unified
File+
src/backend/commands/tablecmds.c 1 3
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 82989158ee..946119fa86 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -13334,10 +13334,8 @@ PreCommit_on_commit_actions(void)
 	 * exists at truncation time.
 	 */
 	if (oids_to_truncate != NIL)
-	{
 		heap_truncate(oids_to_truncate);
-		CommandCounterIncrement();	/* XXX needed? */
-	}
+
 	if (oids_to_drop != NIL)
 	{
 		ObjectAddresses *targetObjects = new_object_addresses();