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

Commitf92bbb8

Browse files
committed
Fix incorrect arguments for gist_box_penalty call. The bug could be observed
only for secondary page split (i.e. for non-first columns of index) Patch by Paul Ramsey <pramsey@opengeo.org>
1 parentdacaeff commitf92bbb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
1212
* IDENTIFICATION
13-
*$PostgreSQL: pgsql/src/backend/access/gist/gistproc.c,v 1.17 2009/06/11 14:48:53 momjian Exp $
13+
*$PostgreSQL: pgsql/src/backend/access/gist/gistproc.c,v 1.18 2009/09/18 14:01:56 teodor Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -234,9 +234,9 @@ chooseLR(GIST_SPLITVEC *v,
234234
NULL,NULL,InvalidOffsetNumber, FALSE);
235235

236236
gistentryinit(addon,BoxPGetDatum(union1),NULL,NULL,InvalidOffsetNumber, FALSE);
237-
DirectFunctionCall3(gist_box_penalty,PointerGetDatum(&oldUnion),PointerGetDatum(&union1),PointerGetDatum(&p1));
237+
DirectFunctionCall3(gist_box_penalty,PointerGetDatum(&oldUnion),PointerGetDatum(&addon),PointerGetDatum(&p1));
238238
gistentryinit(addon,BoxPGetDatum(union2),NULL,NULL,InvalidOffsetNumber, FALSE);
239-
DirectFunctionCall3(gist_box_penalty,PointerGetDatum(&oldUnion),PointerGetDatum(&union2),PointerGetDatum(&p2));
239+
DirectFunctionCall3(gist_box_penalty,PointerGetDatum(&oldUnion),PointerGetDatum(&addon),PointerGetDatum(&p2));
240240

241241
if ((v->spl_ldatum_exists&&p1>p2)|| (v->spl_rdatum_exists&&p1<p2))
242242
firstToLeft= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp