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

Commit14ee357

Browse files
committed
Fix portability bug in gin_page_opaque_info().
Somebody apparently thought that "if Int32GetDatum is good,Int64GetDatum must be better". Per buildfarm failures nowthat Peter has added some regression tests here.
1 parentf7c9a6e commit14ee357

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎contrib/pageinspect/ginfuncs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ gin_page_opaque_info(PG_FUNCTION_ARGS)
100100
GinPageOpaqueopaq;
101101
HeapTupleresultTuple;
102102
Datumvalues[3];
103-
boolnulls[10];
103+
boolnulls[3];
104104
Datumflags[16];
105105
intnflags=0;
106106
uint16flagbits;
@@ -152,9 +152,9 @@ gin_page_opaque_info(PG_FUNCTION_ARGS)
152152
memset(nulls,0,sizeof(nulls));
153153

154154
values[0]=Int64GetDatum(opaq->rightlink);
155-
values[1]=Int64GetDatum(opaq->maxoff);
156-
values[2]=PointerGetDatum(
157-
construct_array(flags,nflags,TEXTOID,-1, false,'i'));
155+
values[1]=Int32GetDatum(opaq->maxoff);
156+
values[2]=PointerGetDatum(construct_array(flags,nflags,
157+
TEXTOID,-1, false,'i'));
158158

159159
/* Build and return the result tuple. */
160160
resultTuple=heap_form_tuple(tupdesc,values,nulls);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp