From: Heikki Linnakangas Date: Thu, 11 Sep 2014 19:43:56 +0000 (+0300) Subject: Remove dead InRecovery check. X-Git-Tag: REL9_4_BETA3~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8b4124011322b7e376f9e21b3d335a85a28f54c;p=postgresql Remove dead InRecovery check. With the new B-tree incomplete split handling in 9.4, _bt_insert_parent is never called in recovery. --- 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);