Skip to content

Commit db3d7e9

Browse files
committed
Remove useless picksplit-doesn't-support-secondary-split log spam.
This LOG message was put in over five years ago with the evident expectation that we'd make all GiST opclasses support secondary split directly. However, no such thing ever happened, and indeed the number of opclasses supporting it decreased to zero in 9.2. The reason is that improving on the default implementation isn't that easy --- the opclass-specific code that did exist, before 9.2, doesn't appear to have been any improvement over the default. Hence, remove the message altogether. There's certainly no point in nagging users about this in released branches, but I doubt that we'll ever implement complete opclass-specific support anyway.
1 parent dacc185 commit db3d7e9

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

src/backend/access/gist/gistsplit.c

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,6 @@ gistUserPicksplit(Relation r, GistEntryVector *entryvec, int attno, GistSplitVec
460460

461461
/* Do a generic split */
462462
genericPickSplit(giststate, entryvec, sv, attno);
463-
464-
/* Clean up if we're in a secondary split */
465-
if (sv->spl_ldatum_exists || sv->spl_rdatum_exists)
466-
supportSecondarySplit(r, giststate, attno, sv,
467-
v->spl_lattr[attno], v->spl_rattr[attno]);
468463
}
469464
else
470465
{
@@ -473,18 +468,13 @@ gistUserPicksplit(Relation r, GistEntryVector *entryvec, int attno, GistSplitVec
473468
sv->spl_left[sv->spl_nleft - 1] = (OffsetNumber) (entryvec->n - 1);
474469
if (sv->spl_right[sv->spl_nright - 1] == InvalidOffsetNumber)
475470
sv->spl_right[sv->spl_nright - 1] = (OffsetNumber) (entryvec->n - 1);
476-
477-
/* Clean up if we're in a secondary split */
478-
if (sv->spl_ldatum_exists || sv->spl_rdatum_exists)
479-
{
480-
elog(DEBUG1, "picksplit method for column %d of index \"%s\" doesn't support secondary split",
481-
attno + 1, RelationGetRelationName(r));
482-
483-
supportSecondarySplit(r, giststate, attno, sv,
484-
v->spl_lattr[attno], v->spl_rattr[attno]);
485-
}
486471
}
487472

473+
/* Clean up if PickSplit didn't take care of a secondary split */
474+
if (sv->spl_ldatum_exists || sv->spl_rdatum_exists)
475+
supportSecondarySplit(r, giststate, attno, sv,
476+
v->spl_lattr[attno], v->spl_rattr[attno]);
477+
488478
/* emit union datums computed by PickSplit back to v arrays */
489479
v->spl_lattr[attno] = sv->spl_ldatum;
490480
v->spl_rattr[attno] = sv->spl_rdatum;

0 commit comments

Comments
 (0)