From aae7af3df8054d83b3080f94ca98a5698e8b3de0 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 11 Sep 2014 22:43:56 +0300 Subject: [PATCH] Remove dead InRecovery check. With the new B-tree incomplete split handling in 9.4, _bt_insert_parent is never called in recovery. --- src/backend/access/nbtree/nbtinsert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c index ecee5ac7f6..59d7006c94 100644 --- a/src/backend/access/nbtree/nbtinsert.c +++ b/src/backend/access/nbtree/nbtinsert.c @@ -1740,8 +1740,7 @@ _bt_insert_parent(Relation rel, { BTPageOpaque lpageop; - if (!InRecovery) - elog(DEBUG2, "concurrent ROOT page split"); + elog(DEBUG2, "concurrent ROOT page split"); lpageop = (BTPageOpaque) PageGetSpecialPointer(page); /* Find the leftmost page at the next level up */ pbuf = _bt_get_endpoint(rel, lpageop->btpo.level + 1, false);