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

Commitc545e95

Browse files
committed
Don't prematurely cram a value into a short int.
Sincea4d75c8, some buildfarm members have been warning thatAssert(attnum <= MaxAttrNumber);is useless if attnum is an AttrNumber. I'm not certain how plausibleit is that the value coming out of the bitmap could actually exceedMaxAttrNumber, but we seem to have thought that that was possible backin7300a69. Revert the intermediate variable to int so that we havethe same overflow protection as before.
1 parent3b0c647 commitc545e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ build_attnums_array(Bitmapset *attrs, int nexprs, int *numattrs)
978978
j=-1;
979979
while ((j=bms_next_member(attrs,j)) >=0)
980980
{
981-
AttrNumberattnum= (j-nexprs);
981+
intattnum= (j-nexprs);
982982

983983
/*
984984
* Make sure the bitmap contains only user-defined attributes. As

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp