Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdacc185

Browse files
committed
Remove vestigial secondary-split support in gist_box_picksplit().
Not only is this implementation of secondary-split not better than thedefault implementation in gistsplit.c, it's actually worse. The gistsplit.ccode at least looks to see if switching the left and right sides would makea better merge with the previously-split tuples, while this doesn't.In any case it's rather useless to support secondary split only in an edgecase. There used to be more complete support for it here (in chooseLR()),but that was removed in commit7f3bd86.It appears to me though that the chooseLR() code was really isomorphic tothe default implementation, since it was still based on choosing the cheaperway of adding two sub-split vectors that had been chosen without regard tothe primary split initially. I think an implementation of secondary splitthat could beat the default implementation would have to be pretty fullyintegrated into the split algorithm, not plastered on at the end.Back-patch to 9.2, but not further; previous branches have the chooseLR()code which I don't feel a great need to mess with. This is mainly so wejust have two behaviors and not three among the various branches (IOW, thispatch is cleanup for commit7f3bd86'sincomplete removal of secondary-split support).
1 parent0fd0f36 commitdacc185

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

‎src/backend/access/gist/gistproc.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,8 @@ fallbackSplit(GistEntryVector *entryvec, GIST_SPLITVEC *v)
223223
}
224224
}
225225

226-
if (v->spl_ldatum_exists)
227-
adjustBox(unionL,DatumGetBoxP(v->spl_ldatum));
228226
v->spl_ldatum=BoxPGetDatum(unionL);
229-
230-
if (v->spl_rdatum_exists)
231-
adjustBox(unionR,DatumGetBoxP(v->spl_rdatum));
232227
v->spl_rdatum=BoxPGetDatum(unionR);
233-
234-
v->spl_ldatum_exists=v->spl_rdatum_exists= false;
235228
}
236229

237230
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp