aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/nbtree/nbtutils.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c
index 39f2e751864..c72b4566de6 100644
--- a/src/backend/access/nbtree/nbtutils.c
+++ b/src/backend/access/nbtree/nbtutils.c
@@ -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)