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

Commit149b267

Browse files
committed
Fix incorrect access to pg_index.indcollation.
Since this field is after a variable-length field, it can't simply beaccessed via the C struct for pg_index. Fortunately, the relcache alreadydid the dirty work of pulling the information out to where it can beaccessed easily, so this is a one-line fix.Andres Freund
1 parenta54ba23 commit149b267

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/backend/access/index/indexam.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,7 @@ index_getprocinfo(Relation irel,
872872
procnum,attnum,RelationGetRelationName(irel));
873873

874874
fmgr_info_cxt(procId,locinfo,irel->rd_indexcxt);
875-
fmgr_info_collation(irel->rd_index->indcollation.values[attnum-1],
876-
locinfo);
875+
fmgr_info_collation(irel->rd_indcollation[attnum-1],locinfo);
877876
}
878877

879878
returnlocinfo;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp