OSDN Git Service

Fix incorrect access to pg_index.indcollation.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Mar 2011 17:10:50 +0000 (12:10 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Mar 2011 17:10:50 +0000 (12:10 -0500)
commit149b2673c244b92b59411dd2292d6ddcfb03d5d4
treee0181acaac42871ad3f1d2ad2cf3b25b548d9cce
parenta54ba23c087a23222a7c76b33c61cddad5278712
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
src/backend/access/index/indexam.c