diff options
author | Tom Lane | 2011-03-06 17:10:50 +0000 |
---|---|---|
committer | Tom Lane | 2011-03-06 17:10:50 +0000 |
commit | 149b2673c244b92b59411dd2292d6ddcfb03d5d4 (patch) | |
tree | e0181acaac42871ad3f1d2ad2cf3b25b548d9cce /src | |
parent | a54ba23c087a23222a7c76b33c61cddad5278712 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/index/indexam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 6e6af18d471..803bb063985 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -872,8 +872,7 @@ index_getprocinfo(Relation irel, procnum, attnum, RelationGetRelationName(irel)); fmgr_info_cxt(procId, locinfo, irel->rd_indexcxt); - fmgr_info_collation(irel->rd_index->indcollation.values[attnum-1], - locinfo); + fmgr_info_collation(irel->rd_indcollation[attnum-1], locinfo); } return locinfo; |