Commit 52b70b1c authored by Michael Paquier's avatar Michael Paquier

Remove CommandCounterIncrement() after processing ON COMMIT DELETE

This comes from f9b5b41e, which is part of one the original commits that
implemented ON COMMIT actions.  By looking at the truncation code, any
CCI needed happens locally when rebuilding indexes, so it looks safe to
just remove this final incrementation.

Author: Michael Paquier
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/20181109024731.GF2652@paquier.xyz
parent 3de49148
...@@ -13334,10 +13334,8 @@ PreCommit_on_commit_actions(void) ...@@ -13334,10 +13334,8 @@ PreCommit_on_commit_actions(void)
* exists at truncation time. * exists at truncation time.
*/ */
if (oids_to_truncate != NIL) if (oids_to_truncate != NIL)
{
heap_truncate(oids_to_truncate); heap_truncate(oids_to_truncate);
CommandCounterIncrement(); /* XXX needed? */
}
if (oids_to_drop != NIL) if (oids_to_drop != NIL)
{ {
ObjectAddresses *targetObjects = new_object_addresses(); ObjectAddresses *targetObjects = new_object_addresses();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment