Fix incorrect access to pg_index.indcollation.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 149b2673c244b92b59411dd2292d6ddcfb03d5d4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-03-06T17:10:50Z
Releases: 9.1.0
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

Files

PathChange+/−
src/backend/access/index/indexam.c modified +1 −2