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

Commita260208

Browse files
committed
Document and clean up gistsplit.c.
Improve comments, rename some variables and functions, slightly simplifya couple of APIs, in an attempt to make this code readable by people otherthan its original author.Even though this is essentially just cosmetic, back-patch to all activebranches, because otherwise it's going to make back-patching future fixesin this file very painful.
1 parentccb5def commita260208

File tree

4 files changed

+320
-172
lines changed

4 files changed

+320
-172
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -945,18 +945,12 @@ gistSplit(Relation r,
945945
IndexTuple*lvectup,
946946
*rvectup;
947947
GistSplitVectorv;
948-
GistEntryVector*entryvec;
949948
inti;
950949
SplitedPageLayout*res=NULL;
951950

952-
/* generate the item array */
953-
entryvec=palloc(GEVHDRSZ+ (len+1)*sizeof(GISTENTRY));
954-
entryvec->n=len+1;
955-
956951
memset(v.spl_lisnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);
957952
memset(v.spl_risnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);
958-
gistSplitByKey(r,page,itup,len,giststate,
959-
&v,entryvec,0);
953+
gistSplitByKey(r,page,itup,len,giststate,&v,0);
960954

961955
/* form left and right vector */
962956
lvectup= (IndexTuple*)palloc(sizeof(IndexTuple)* (len+1));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp