Remove obsolete nbtree deduplication comments.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 15 Oct 2021 22:25:20 +0000 (15:25 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 15 Oct 2021 22:25:20 +0000 (15:25 -0700)
Follow up to commit 2903f140.

src/backend/access/nbtree/nbtutils.c

index 39f2e7518649d000a40b3a89ebd06aba12f182db..c72b4566de67d85613986536593cf63b6bb7c012 100644 (file)
@@ -2693,7 +2693,7 @@ _bt_allequalimage(Relation rel, bool debugmessage)
 {
        bool            allequalimage = true;
 
-       /* INCLUDE indexes don't support deduplication */
+       /* INCLUDE indexes can never support deduplication */
        if (IndexRelationGetNumberOfAttributes(rel) !=
                IndexRelationGetNumberOfKeyAttributes(rel))
                return false;
@@ -2721,10 +2721,6 @@ _bt_allequalimage(Relation rel, bool debugmessage)
                }
        }
 
-       /*
-        * Don't elog() until here to avoid reporting on a system relation index
-        * or an INCLUDE index
-        */
        if (debugmessage)
        {
                if (allequalimage)