Skip to content

Commit 149b267

Browse files
committed
Fix incorrect access to pg_index.indcollation.
Since this field is after a variable-length field, it can't simply be accessed via the C struct for pg_index. Fortunately, the relcache already did the dirty work of pulling the information out to where it can be accessed easily, so this is a one-line fix. Andres Freund
1 parent a54ba23 commit 149b267

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
return locinfo;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy