Andres Freund <and...@anarazel.de> writes: > Ah. Finally after trying to stare down the code for some more time the issue > is pretty simple.
> - > fmgr_info_collation(irel->rd_index->indcollation.values[attnum-1], > + fmgr_info_collation(irel->rd_indcollation[attnum-1], Good catch ... but while I was poking around to make sure that there were no other similar errors, I started to get pretty desperately unhappy with the state of this code altogether. What exactly is indcollation supposed to mean? Does it have any meaning for unordered indexes? If it means something about the index's sort order, why is it that it's not consulted while building the pathkeys that represent the sort order? (It isn't.) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers